1{ stdenv, fetchurl, libelf, txt2man }: 2 3stdenv.mkDerivation rec { 4 name = "bin_replace_string-${version}"; 5 version = "0.2"; 6 7 src = fetchurl { 8 sha256 = "1gnpddxwpsfrg4l76x5yplsvbcdbviybciqpn22yq3g3qgnr5c2a"; 9 url = "ftp://ohnopub.net/mirror/bin_replace_string-0.2.tar.bz2"; 10 }; 11 12 buildInputs = [ libelf ]; 13 nativeBuildInputs = [ txt2man ]; 14 15 enableParallelBuilding = true; 16 17 meta = with stdenv.lib; { 18 description = "Edit precompiled binaries"; 19 longDescription = '' 20 bin_replace_string edits C-style strings in precompiled binaries. This is 21 intended to be useful to replace arbitrary strings in binaries whose 22 source code is not available. However, because of the nature of compiled 23 binaries, bin_replace_string may only replace a given C-string with a 24 shorter C-string. 25 ''; 26 homepage = http://ohnopub.net/~ohnobinki/bin_replace_string/; 27 downloadPage = ftp://ohnopub.net/mirror/; 28 license = licenses.gpl3Plus; 29 platforms = platforms.linux; 30 }; 31}