karnaugh/flake.nix
2026-04-02 16:13:05 +02:00

40 lines
829 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
rec {
packages.karnaugh = pkgs.rustPlatform.buildRustPackage (final: {
name = "karnaugh";
src = self;
cargoHash = "sha256-oBlvLkO3on0rG80TgSkLcZHI0z2YPudSMVNOnLD4Pnk=";
});
packages.default = packages.karnaugh;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
rustfmt
clippy
];
};
}
);
}