Unverified Commit d1517968 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

wcc: 0.0.7-unstable-2025-01-13 -> 0.0.7-unstable-2025-04-30 (#403181)

parents 4569ad32 9f23f493
Loading
Loading
Loading
Loading
+17 −6
Original line number Diff line number Diff line
@@ -10,14 +10,15 @@
}:

stdenv.mkDerivation {
  pname = "wcc-unstable";
  version = "0.0.7-unstable-2025-01-13";
  pname = "wcc";
  version = "0.0.7-unstable-2025-04-30";

  src = fetchFromGitHub {
    owner = "endrazine";
    repo = "wcc";
    rev = "fe1f71d7f6c756e196b82a884dc38bb8f8aef4d3";
    sha256 = "sha256-Kb9QIL+W0JFdfweqZL05OajXGGqXn6e6Jv3IVCr3BwQ=";
    rev = "8cbb49345d9596dfd37bd1b681753aacaab96475";
    hash = "sha256-f19EqkXJ97k0gjVBEBLzfNqYZ/J7sCCGBEeFsSax3uU=";
    deepClone = true;
    fetchSubmodules = true;
  };

@@ -34,8 +35,12 @@ stdenv.mkDerivation {
      -e "s#/usr/share/wcc#$out/share/wcc#"

    sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h

    sed -i '/wsh-`uname -m`.*-static/d' src/wsh/Makefile
  '';

  env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";

  installFlags = [ "DESTDIR=$(out)" ];

  preInstall = ''
@@ -60,7 +65,13 @@ stdenv.mkDerivation {
    homepage = "https://github.com/endrazine/wcc";
    description = "Witchcraft compiler collection: tools to convert and script ELF files";
    license = licenses.mit;
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ orivej ];
    platforms = [
      "x86_64-linux"
      "aarch64-linux"
    ];
    maintainers = with maintainers; [
      orivej
      DieracDelta
    ];
  };
}