argyllcms: make reproducible
and make binfmt cross-compilable
This commit is contained in:
parent
23f71e9427
commit
e7a05e90da
@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-umY3wQfG26Okqnw+MCUnlwWTAyJ6MR/FHe5oe61KBh0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ jam unzip ];
|
||||
|
||||
postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
substituteInPlace Jambase \
|
||||
--replace "-m64" ""
|
||||
'';
|
||||
|
||||
preConfigure = let
|
||||
# The contents of this file comes from the Jamtop file from the
|
||||
# root of the ArgyllCMS distribution, rewritten to pick up Nixpkgs
|
||||
# library paths. When ArgyllCMS is updated, make sure that changes
|
||||
@ -80,16 +88,13 @@ stdenv.mkDerivation rec {
|
||||
-ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss
|
||||
-ljpeg -ltiff -lpng -lssl ;
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ jam unzip ];
|
||||
|
||||
preConfigure = ''
|
||||
in ''
|
||||
cp ${jamTop} Jamtop
|
||||
substituteInPlace Makefile --replace "-j 3" "-j $NIX_BUILD_CORES"
|
||||
# Remove tiff, jpg and png to be sure the nixpkgs-provided ones are used
|
||||
rm -rf tiff jpg png
|
||||
|
||||
unset AR
|
||||
export AR="$AR rusc"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
@ -110,6 +115,9 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
sed -i '/udev-acl/d' usb/55-Argyll.rules
|
||||
cp -v usb/55-Argyll.rules $out/etc/udev/rules.d/
|
||||
|
||||
sed -i -e 's/^CREATED .*/CREATED "'"$(date -d @$SOURCE_DATE_EPOCH)"'"/g' $out/share/argyllcms/RefMediumGamut.gam
|
||||
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user