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