Commit 6ab5992b authored by Gliczy's avatar Gliczy
Browse files

slade: 3.2.4 -> 3.2.5

Remove the old `postPatch` for non-x86 systems as upstream implemented a check.
Add fix for PK3 destination.
parent 4cf470c9
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -19,17 +19,18 @@

stdenv.mkDerivation rec {
  pname = "slade";
  version = "3.2.4";
  version = "3.2.5";

  src = fetchFromGitHub {
    owner = "sirjuddington";
    repo = "SLADE";
    rev = version;
    sha256 = "sha256-CN01w+sXXRqvQqu1whePAb+phVx+VM8tL2NusfnCyF8=";
    sha256 = "sha256-FBpf1YApwVpWSpUfa2LOrkS1Ef34sKCIZ6ic+Pczs14=";
  };

  postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
    sed -i '/-msse/d' src/CMakeLists.txt
  postPatch = ''
    substituteInPlace dist/CMakeLists.txt \
      --replace "PK3_OUTPUT" "PK3_DESTINATION"
  '';

  nativeBuildInputs = [
@@ -54,6 +55,7 @@ stdenv.mkDerivation rec {

  cmakeFlags = [
    "-DwxWidgets_LIBRARIES=${wxGTK}/lib"
    "-DBUILD_PK3=ON"
  ];

  env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";