From 8d2d56bea3080af773cac54d8a51f8cc28fb09fb Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 18 May 2023 12:53:46 +0000 Subject: [PATCH] build: add version for flake --- default.nix | 4 ++-- flake.nix | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index 584aae4..d9687af 100644 --- a/default.nix +++ b/default.nix @@ -10,13 +10,13 @@ } ) , lib - , self + , version }: pkgs.buildGoApplication rec { pname = "out-of-tree"; - version = "unstable"; + inherit version; nativeBuildInputs = [ pkgs.makeWrapper ]; diff --git a/flake.nix b/flake.nix index 138e396..cd77b66 100644 --- a/flake.nix +++ b/flake.nix @@ -14,9 +14,10 @@ overlays = [ gomod2nix.overlays.default ]; }; + version = self.lastModifiedDate; in { - packages.default = pkgs.callPackage ./. { }; + packages.default = pkgs.callPackage ./. { inherit version; }; devShells.default = import ./shell.nix { inherit pkgs; }; }) );