Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 34 lines 781 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 perl, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "num-utils"; 10 version = "0.5"; 11 12 src = fetchurl { 13 url = "https://suso.suso.org/programs/num-utils/downloads/num-utils-${version}.tar.gz"; 14 sha256 = "0kn6yskjww2agcqvas5l2xp55mp4njdxqkdicchlji3qzih2fn83"; 15 }; 16 17 buildInputs = [ perl ]; 18 19 patchPhase = '' 20 substituteInPlace Makefile --replace "-o 0 -g 0" "" --replace "\$(RPMDIR)" "" 21 ''; 22 makeFlags = [ 23 "TOPDIR=${placeholder "out"}" 24 "PERL=${perl}/bin/perl" 25 ]; 26 27 meta = with lib; { 28 description = "Programs for dealing with numbers from the command line"; 29 homepage = "https://suso.suso.org/xulu/Num-utils"; 30 license = licenses.gpl2Plus; 31 platforms = platforms.all; 32 maintainers = [ maintainers.catern ]; 33 }; 34}