diff options
author | Felix Buehler <account@buehler.rocks> | 2021-08-12 21:47:47 +0200 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-08-12 21:47:47 +0200 |
commit | 7cd5d178fc6fd403907bfe00f502337c162d7607 (patch) | |
tree | deab830841f24b5fa75a008deb9eeaa03e2a12ba /pkgs/tools/compression | |
parent | 6dfd25fdc4fbbde2b13d3140287cee04f5e9e483 (diff) |
tools: replace name with pname&version
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/lzham/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/compression/lzham/default.nix b/pkgs/tools/compression/lzham/default.nix index 7f4273163a3ec..5915d1439dff5 100644 --- a/pkgs/tools/compression/lzham/default.nix +++ b/pkgs/tools/compression/lzham/default.nix @@ -1,12 +1,13 @@ { lib, stdenv, fetchFromGitHub, cmake } : -stdenv.mkDerivation { - name = "lzham-1.0"; +stdenv.mkDerivation rec { + pname = "lzham"; + version = "1.0"; src = fetchFromGitHub { owner = "richgel999"; repo = "lzham_codec"; - rev = "v1_0_release"; + rev = "v${lib.replaceStrings ["."] ["_"] version}_release"; sha256 = "14c1zvzmp1ylp4pgayfdfk1kqjb23xj4f7ll1ra7b18wjxc9ja1v"; }; |