update nix package to use version
This commit is contained in:
parent
99aad39c57
commit
7d91521083
10
default.nix
10
default.nix
@ -1,6 +1,12 @@
|
||||
{ stdenv, zig_0_12, lib, ... }:
|
||||
{ stdenv,
|
||||
zig_0_12,
|
||||
lib,
|
||||
version ? "git",
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "artificer";
|
||||
pname = "artificer";
|
||||
inherit version;
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -7,9 +7,10 @@
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
version = builtins.substring 0 8 self.lastModifiedDate;
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in
|
||||
{
|
||||
packages.x86_64-linux.default = pkgs.callPackage ./. { };
|
||||
packages.x86_64-linux.default = pkgs.callPackage ./. { inherit version; };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user