Update xK

This commit is contained in:
Přemysl Eric Janouch 2023-07-04 23:23:45 +02:00
parent 8a97713fa1
commit 8e0826b8b3
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 8 additions and 0 deletions

View File

@ -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.