-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
28 lines (28 loc) · 899 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let pkgs = import nixpkgs { inherit system; }; in
with pkgs; rec {
devShell = mkShell {
nativeBuildInputs = [ rust-analyzer rustfmt clippy ];
inputsFrom = [ packages.default ];
};
packages = {
default = packages.resign;
resign = rustPlatform.buildRustPackage {
name = "resign";
src = self;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config cmake rustPlatform.bindgenHook ];
buildInputs = [ nettle pcsclite ];
doCheck = false;
};
};
});
}