cartographer/flake.nix
2024-09-12 00:16:12 -07:00

47 lines
1.2 KiB
Nix

{
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 {
buildInputs = with pkgs; [
pkg-config
rust-bin.stable.latest.rust-analyzer
rust-bin.stable.latest.default
openssl
rust-bin.stable.latest.rustfmt
];
};
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "cartographer";
version = "0.1.0";
src = ./.;
cargoHash = "sha256-6nqR5x34o8zCpNVp8NUC7+7j48rOkbHKJF9AU3bBs+c=";
# cargoHash = pkgs.lib.fakeHash;
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
};
}
);
}