From 7d91521083be3a752329b9d27de0dee2892e41a0 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 7 Aug 2024 20:35:33 +0300 Subject: [PATCH] update nix package to use version --- default.nix | 10 ++++++++-- flake.nix | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) 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; }; }; }