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 { stdenv.mkDerivation {
name = "artificer"; pname = "artificer";
inherit version;
src = lib.cleanSource ./.; src = lib.cleanSource ./.;
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -7,9 +7,10 @@
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
let let
version = builtins.substring 0 8 self.lastModifiedDate;
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
in in
{ {
packages.x86_64-linux.default = pkgs.callPackage ./. { }; packages.x86_64-linux.default = pkgs.callPackage ./. { inherit version; };
}; };
} }