build: use a nixpkgs-approved version scheme
Alan Pearce alan@alanpearce.eu
Tue, 14 May 2024 21:15:19 +0200
2 files changed, 11 insertions(+), 1 deletions(-)
jump to
M nix/package.nix → nix/package.nix
@@ -11,10 +11,19 @@ } ) , buildGoApplication ? pkgs.buildGoApplication , css +, self }: +let + inherit (builtins) concatStringsSep match; + + version = concatStringsSep "-" (match + "([[:digit:]]{4})([[:digit:]]{2})([[:digit:]]{2}).*" + self.lastModifiedDate + ); +in buildGoApplication { pname = "searchix"; - version = "0.1"; + inherit version; src = with pkgs.lib.fileset; toSource { root = ../.; fileset = difference