update nix package to use version

This commit is contained in:
Rokas Puzonas 2024-08-07 20:35:33 +03:00
parent 99aad39c57
commit 7d91521083
2 changed files with 10 additions and 3 deletions

View File

@ -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 = [

View File

@ -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; };
};
}