13 pname = "wcc-unstable";
14 version = "0.0.7-unstable-2025-01-13";
16 src = fetchFromGitHub {
19 rev = "fe1f71d7f6c756e196b82a884dc38bb8f8aef4d3";
20 sha256 = "sha256-Kb9QIL+W0JFdfweqZL05OajXGGqXn6e6Jv3IVCr3BwQ=";
21 fetchSubmodules = true;
33 sed -i src/wsh/include/libwitch/wsh.h src/wsh/scripts/INDEX \
34 -e "s#/usr/share/wcc#$out/share/wcc#"
36 sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h
39 installFlags = [ "DESTDIR=$(out)" ];
42 mkdir -p $out/usr/bin $out/lib/x86_64-linux-gnu
48 mkdir -p $out/share/man/man1
49 cp doc/manpages/*.1 $out/share/man/man1/
53 # not detected by patchShebangs
54 substituteInPlace $out/bin/wcch --replace-fail '#!/usr/bin/wsh' "#!$out/bin/wsh"
57 enableParallelBuilding = true;
60 homepage = "https://github.com/endrazine/wcc";
61 description = "Witchcraft compiler collection: tools to convert and script ELF files";
62 license = licenses.mit;
63 platforms = [ "x86_64-linux" ];
64 maintainers = with maintainers; [ orivej ];