1 { lib, stdenv, fetchFromGitHub, capstone, libbfd, libelf, libiberty, readline }:
4 pname = "wcc-unstable";
5 version = "2018-04-05";
7 src = fetchFromGitHub {
10 rev = "f141963ff193d7e1931d41acde36d20d7221e74f";
11 sha256 = "1f0w869x0176n5nsq7m70r344gv5qvfmk7b58syc0jls8ghmjvb4";
12 fetchSubmodules = true;
15 buildInputs = [ capstone libbfd libelf libiberty readline ];
18 sed -i src/wsh/include/libwitch/wsh.h src/wsh/scripts/INDEX \
19 -e "s#/usr/share/wcc#$out/share/wcc#"
21 sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h
24 installFlags = [ "DESTDIR=$(out)" ];
33 mkdir -p $out/share/man/man1
34 cp doc/manpages/*.1 $out/share/man/man1/
38 # Let patchShebangs rewrite shebangs with wsh.
42 enableParallelBuilding = true;
45 homepage = "https://github.com/endrazine/wcc";
46 description = "Witchcraft compiler collection: tools to convert and script ELF files";
47 license = licenses.mit;
48 platforms = [ "x86_64-linux" ];
49 maintainers = with maintainers; [ orivej ];