Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 multiStdenv, 4 fetchurl, 5}: 6 7multiStdenv.mkDerivation rec { 8 pname = "statifier"; 9 version = "1.7.4"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz"; 13 sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8"; 14 }; 15 16 phaseNames = [ 17 "patchPhase" 18 "installPhase" 19 ]; 20 21 postPatch = '' 22 sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier 23 sed -e s@/bin/bash@"${multiStdenv.shell}"@g -i src/*.sh 24 ''; 25 26 meta = with lib; { 27 description = "Tool for creating static Linux binaries"; 28 mainProgram = "statifier"; 29 platforms = platforms.linux; 30 license = licenses.gpl2Only; 31 }; 32}