Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color transformation language init #338697

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ lib.mapAttrs mkLicense ({
free = false;
};

ampas = {
spdxId = "AMPAS";
fullName = "Academy of Motion Picture Arts and Sciences BSD";
};

aom = {
fullName = "Alliance for Open Media Patent License 1.0";
url = "https://aomedia.org/license/patent-license/";
Expand Down
31 changes: 31 additions & 0 deletions pkgs/by-name/ac/aces-container/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:

stdenv.mkDerivation rec {
pname = "aces-container";
version = "1.0.2";

src = fetchFromGitHub {
owner = "ampas";
repo = "aces_container";
rev = "v${version}";
hash = "sha256-luMqXqlJ6UzoawEDmbK38lm3GHosaZm/mFJntBF54Y4=";
};

nativeBuildInputs = [
cmake
];

meta = {
description = "Reference Implementation of SMPTE ST2065-4";
homepage = "https://github.com/ampas/aces_container";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "aces-container";
platforms = lib.platforms.all;
};
}
Comment on lines +8 to +31
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
stdenv.mkDerivation rec {
pname = "aces-container";
version = "1.0.2";
src = fetchFromGitHub {
owner = "ampas";
repo = "aces_container";
rev = "v${version}";
hash = "sha256-luMqXqlJ6UzoawEDmbK38lm3GHosaZm/mFJntBF54Y4=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "Reference Implementation of SMPTE ST2065-4";
homepage = "https://github.com/ampas/aces_container";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "aces-container";
platforms = lib.platforms.all;
};
}
stdenv.mkDerivation (finalAttrs: {
pname = "aces-container";
version = "1.0.2";
src = fetchFromGitHub {
owner = "ampas";
repo = "aces_container";
rev = "v${finalAttrs.version}";
hash = "sha256-luMqXqlJ6UzoawEDmbK38lm3GHosaZm/mFJntBF54Y4=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "Reference Implementation of SMPTE ST2065-4";
homepage = "https://github.com/ampas/aces_container";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "aces-container";
platforms = lib.platforms.all;
};
})

35 changes: 33 additions & 2 deletions pkgs/by-name/ar/art/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
, fetchFromBitbucket
, cmake
, pkg-config
, util-linux
, libselinux
, libsepol
, libthai
, libdatrie
, lerc
, libxkbcommon
, libepoxy
, libXtst
, wrapGAppsHook3
, makeWrapper
, pixman
Expand All @@ -11,17 +20,22 @@
, libXau
, libXdmcp
, lcms2
, libraw
, libiptcdata
, fftw
, expat
, pcre
, pcre2
, libsigcxx
, lensfun
, librsvg
, libcanberra-gtk3
, exiv2
, exiftool
, mimalloc
, openexr_3
, ilmbase
, opencolorio
, color-transformation-language
}:

stdenv.mkDerivation rec {
Expand All @@ -42,28 +56,45 @@ stdenv.mkDerivation rec {
];

buildInputs = [
util-linux
libselinux
libsepol
libthai
libdatrie
lerc
libxkbcommon
libepoxy
libXtst
pixman
libpthreadstubs
gtkmm3
libXau
libXdmcp
lcms2
libraw
libiptcdata
fftw
expat
pcre
pcre2
libsigcxx
lensfun
librsvg
exiv2
exiftool
libcanberra-gtk3
mimalloc
openexr_3
ilmbase
opencolorio
color-transformation-language
];

cmakeFlags = [
"-DPROC_TARGET_NUMBER=2"
"-DCACHE_NAME_SUFFIX=\"\""
"-DENABLE_OCIO=True"
"-DENABLE_CTL=1"
"-DCTL_INCLUDE_DIR=${color-transformation-language}/include/CTL"
];

CMAKE_CXX_FLAGS = toString [
Expand Down
40 changes: 40 additions & 0 deletions pkgs/by-name/co/color-transformation-language/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ilmbase,
openexr_3,
libtiff,
aces-container,
}:

stdenv.mkDerivation rec {
pname = "ctl";
version = "1.5.3";

src = fetchFromGitHub {
owner = "ampas";
repo = "CTL";
rev = "ctl-${version}";
hash = "sha256-jG+38jsPw+4CEAbOG+hudfPBPbZLG+Om7PszkFa6DuI=";
};

nativeBuildInputs = [
cmake
ilmbase
openexr_3
libtiff
aces-container
];

meta = {
description = "Programming language for digital color management";
homepage = "https://github.com/ampas/CTL";
changelog = "https://github.com/ampas/CTL/blob/${src.rev}/CHANGELOG";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "ctl";
platforms = lib.platforms.all;
};
}
Comment on lines +12 to +40
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
stdenv.mkDerivation rec {
pname = "ctl";
version = "1.5.3";
src = fetchFromGitHub {
owner = "ampas";
repo = "CTL";
rev = "ctl-${version}";
hash = "sha256-jG+38jsPw+4CEAbOG+hudfPBPbZLG+Om7PszkFa6DuI=";
};
nativeBuildInputs = [
cmake
ilmbase
openexr_3
libtiff
aces-container
];
meta = {
description = "Programming language for digital color management";
homepage = "https://github.com/ampas/CTL";
changelog = "https://github.com/ampas/CTL/blob/${src.rev}/CHANGELOG";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "ctl";
platforms = lib.platforms.all;
};
}
stdenv.mkDerivation (finalAttrs: {
pname = "ctl";
version = "1.5.3";
src = fetchFromGitHub {
owner = "ampas";
repo = "CTL";
rev = "ctl-${finalAttrs.version}";
hash = "sha256-jG+38jsPw+4CEAbOG+hudfPBPbZLG+Om7PszkFa6DuI=";
};
nativeBuildInputs = [
cmake
ilmbase
openexr_3
libtiff
aces-container
];
meta = {
description = "Programming language for digital color management";
homepage = "https://github.com/ampas/CTL";
changelog = "https://github.com/ampas/CTL/blob/${src.rev}/CHANGELOG";
license = lib.licenses.ampas;
maintainers = with lib.maintainers; [ paperdigits ];
mainProgram = "ctl";
platforms = lib.platforms.all;
};
})