2024-09-11 01:34:47 -07:00
|
|
|
{
|
|
|
|
description = "A TUI for the Canvas LMS.";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
rust-overlay,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
overlays = [ (import rust-overlay) ];
|
|
|
|
pkgs = import nixpkgs { inherit system overlays; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
2024-09-12 00:10:56 -07:00
|
|
|
buildInputs = with pkgs; [
|
2024-09-11 01:34:47 -07:00
|
|
|
pkg-config
|
2024-09-12 00:10:56 -07:00
|
|
|
rust-bin.stable.latest.rust-analyzer
|
2024-09-11 01:34:47 -07:00
|
|
|
rust-bin.stable.latest.default
|
|
|
|
openssl
|
2024-09-12 00:10:56 -07:00
|
|
|
rust-bin.stable.latest.rustfmt
|
2024-09-11 01:34:47 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
packages.default = pkgs.rustPlatform.buildRustPackage {
|
|
|
|
pname = "cartographer";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = ./.;
|
2024-09-12 00:16:12 -07:00
|
|
|
cargoHash = "sha256-6nqR5x34o8zCpNVp8NUC7+7j48rOkbHKJF9AU3bBs+c=";
|
|
|
|
# cargoHash = pkgs.lib.fakeHash;
|
2024-09-11 01:34:47 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
|
|
|
buildInputs = with pkgs; [ openssl ];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|