From 8e0826b8b3222629dc2cdb1db5e656da68d8d29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Tue, 4 Jul 2023 23:23:45 +0200 Subject: [PATCH] Update xK --- xK-master.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xK-master.nix b/xK-master.nix index 4e57dd0..eb272b9 100644 --- a/xK-master.nix +++ b/xK-master.nix @@ -5,6 +5,7 @@ pkgs.stdenv.mkDerivation rec { _pname = "xK"; pname = pkgs.lib.strings.toLower _pname; + _version = pkgs.lib.strings.fileContents (src + "/xK-version"); version = "master"; nativeBuildInputs = with pkgs; [ @@ -98,6 +99,13 @@ pkgs.stdenv.mkDerivation rec { preBuild = '' make ''; + + ldflags = [ "-X 'main.projectVersion=${_version}'" ]; + + postInstall = '' + mkdir -p $out/share/man/man1 + mv xS.1 $out/share/man/man1 + ''; }; # While we can't include them in this derivation, we can link to them.