diff options
author | Spencer Baugh <sbaugh@catern.com> | 2021-03-31 19:41:09 -0400 |
---|---|---|
committer | Spencer Baugh <sbaugh@catern.com> | 2021-05-10 18:54:07 -0400 |
commit | caf6e184f978e3e9d07f24ffd709ce90f0667f27 (patch) | |
tree | 8e113a19765259df23b378aa7c31d5f589362c38 /pkgs/tools/text/num-utils/default.nix | |
parent | a1d64d9419422ae9779ab5cada5828127a24e100 (diff) | |
download | nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar.gz nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar.bz2 nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar.lz nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar.xz nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.tar.zst nixlib-caf6e184f978e3e9d07f24ffd709ce90f0667f27.zip |
num-utils: init at 0.5
Diffstat (limited to 'pkgs/tools/text/num-utils/default.nix')
-rw-r--r-- | pkgs/tools/text/num-utils/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/text/num-utils/default.nix b/pkgs/tools/text/num-utils/default.nix new file mode 100644 index 000000000000..14784a4e8cfc --- /dev/null +++ b/pkgs/tools/text/num-utils/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, perl }: + +stdenv.mkDerivation rec { + pname = "num-utils"; + version = "0.5"; + + src = fetchurl { + url = "https://suso.suso.org/programs/num-utils/downloads/num-utils-${version}.tar.gz"; + sha256 = "0kn6yskjww2agcqvas5l2xp55mp4njdxqkdicchlji3qzih2fn83"; + }; + + buildInputs = [ perl ]; + + patchPhase = '' + substituteInPlace Makefile --replace "-o 0 -g 0" "" --replace "\$(RPMDIR)" "" + ''; + makeFlags = [ + "TOPDIR=${placeholder "out"}" + "PERL=${perl}/bin/perl" + ]; + + meta = with lib; { + description = "Programs for dealing with numbers from the command line"; + homepage = "https://suso.suso.org/xulu/Num-utils"; + license = licenses.gpl2Plus; + platforms = platforms.all; + maintainers = [ maintainers.catern ]; + }; +} |