Merge pull request #95625 from risicle/ris-jxrlib-darwin
jxrlib: fix/enable for darwin
This commit is contained in:
commit
9b4ea9a45a
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w";
|
sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace '-shared' '-dynamiclib -undefined dynamic_lookup' \
|
||||||
|
--replace '.so' '.dylib'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ python ];
|
nativeBuildInputs = [ python ];
|
||||||
|
|
||||||
makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ];
|
makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ];
|
||||||
@ -21,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Implementation of the JPEG XR image codec standard";
|
description = "Implementation of the JPEG XR image codec standard";
|
||||||
homepage = "https://jxrlib.codeplex.com";
|
homepage = "https://jxrlib.codeplex.com";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ romildo ];
|
maintainers = with maintainers; [ romildo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user