diff --git a/default.nix b/default.nix index 727a44a..9028c7c 100644 --- a/default.nix +++ b/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 = [ diff --git a/flake.nix b/flake.nix index 4ba4eb2..ad70a24 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }; }