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

jabcode-{reader,writer}: fix build (#507759)

parents eda1d4af 56117629
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -32,6 +32,13 @@ stdenv.mkDerivation {
  ]
  ++ lib.optionals (subproject != "library") [ jabcode ];

  postPatch = ''
    substituteInPlace src/jabcode/Makefile src/jabcodeReader/Makefile src/jabcodeWriter/Makefile \
      --replace-fail "CC 	= \$(PREFIX)gcc" ""
    # remove bundled library binaries to force using system libraries
    rm -rf src/jabcode/lib
  '';

  preConfigure = "cd src/${subdir}";

  installPhase =
@@ -53,6 +60,5 @@ stdenv.mkDerivation {
    license = lib.licenses.lgpl21;
    maintainers = [ lib.maintainers.xaverdh ];
    platforms = lib.platforms.unix;
    broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/jabcode.x86_64-darwin
  };
}