forked from eklairs/tlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
25 lines (22 loc) · 661 Bytes
/
flake.nix
File metadata and controls
25 lines (22 loc) · 661 Bytes
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ { self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem = { system, ... }: let
pkgs = import nixpkgs { inherit system; };
git_version = self.shortRev or self.dirtyShortRev;
in rec {
packages = rec {
tlock = pkgs.callPackage ./nix { inherit git_version; };
default = tlock;
};
devShells.default = pkgs.mkShell {
inputsFrom = [ packages.default ];
};
};
};
}