mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
opencolorio_1: unbreak, use gitMinimal (#403515)
This commit is contained in:
commit
a8773cddda
1 changed files with 18 additions and 11 deletions
|
@ -3,22 +3,22 @@
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
cmake,
|
cmake,
|
||||||
boost,
|
gitMinimal,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
lcms2,
|
lcms2,
|
||||||
tinyxml,
|
tinyxml,
|
||||||
git,
|
boost,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAtts: {
|
||||||
pname = "opencolorio";
|
pname = "opencolorio";
|
||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "imageworks";
|
owner = "imageworks";
|
||||||
repo = "OpenColorIO";
|
repo = "OpenColorIO";
|
||||||
rev = "v${version}";
|
tag = "v${finalAtts.version}";
|
||||||
sha256 = "12srvxca51czpfjl0gabpidj9n84mw78ivxy5w75qhq2mmc798sb";
|
hash = "sha256-S6N0WK0CQ1wOL77viA6vBNkkW7xLPUClu5+FoljfWYs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [
|
outputs = [
|
||||||
|
@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
|
||||||
# TODO: Investigate whether git can be dropped: It's only used to apply patches
|
# TODO: Investigate whether git can be dropped: It's only used to apply patches
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
gitMinimal
|
||||||
pkg-config
|
pkg-config
|
||||||
git
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -57,6 +57,13 @@ stdenv.mkDerivation rec {
|
||||||
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
|
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
|
||||||
) "-DCMAKE_OSX_ARCHITECTURES=arm64";
|
) "-DCMAKE_OSX_ARCHITECTURES=arm64";
|
||||||
|
|
||||||
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
# yaml-cpp uses std::auto_ptr and std::binary_function which has
|
||||||
|
# been disabled in clang with libcxx. These flags re-enables these
|
||||||
|
# features
|
||||||
|
NIX_CXXSTDLIB_COMPILE = "-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR=1 -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION=1";
|
||||||
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
moveToOutput bin "$bin"
|
moveToOutput bin "$bin"
|
||||||
moveToOutput cmake "$dev"
|
moveToOutput cmake "$dev"
|
||||||
|
@ -66,11 +73,11 @@ stdenv.mkDerivation rec {
|
||||||
--replace "$out/bin" "$bin/bin"
|
--replace "$out/bin" "$bin/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://opencolorio.org";
|
homepage = "https://opencolorio.org";
|
||||||
description = "Color management framework for visual effects and animation";
|
description = "Color management framework for visual effects and animation";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ yzx9 ];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue