-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
31 lines (26 loc) · 852 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
29
30
31
{
description = "agenix-cli";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat.url = "github:edolstra/flake-compat";
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
in
{
packages = rec {
default = agenix-cli;
agenix-cli = pkgs.rustPlatform.buildRustPackage {
pname = "agenix-cli";
version = (lib.importTOML ./Cargo.toml).package.version;
src = self;
cargoLock.lockFile = ./Cargo.lock;
};
};
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rustc cargo rustfmt ];
};
});
}