{ 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 ]; }; } ); }