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