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