Unverified Commit ed96506b authored by Connor Baker's avatar Connor Baker Committed by GitHub
Browse files

Color transformation language init (#338697)

parents 14031259 7ae28b00
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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/";
+31 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
}:

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;
  };
})
+33 −2
Original line number Diff line number Diff line
@@ -3,6 +3,15 @@
, fetchFromBitbucket
, cmake
, pkg-config
, util-linux
, libselinux
, libsepol
, libthai
, libdatrie
, lerc
, libxkbcommon
, libepoxy
, libXtst
, wrapGAppsHook3
, pixman
, libpthreadstubs
@@ -10,10 +19,11 @@
, libXau
, libXdmcp
, lcms2
, libraw
, libiptcdata
, fftw
, expat
, pcre
, pcre2
, libsigcxx
, lensfun
, librsvg
@@ -21,6 +31,10 @@
, exiv2
, exiftool
, mimalloc
, openexr_3
, ilmbase
, opencolorio
, color-transformation-language
}:

stdenv.mkDerivation rec {
@@ -41,16 +55,26 @@ 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
@@ -58,11 +82,18 @@ stdenv.mkDerivation rec {
    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 [
+40 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ilmbase,
  openexr_3,
  libtiff,
  aces-container,
}:

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/${finalAttrs.src.rev}/CHANGELOG";
    license = lib.licenses.ampas;
    maintainers = with lib.maintainers; [ paperdigits ];
    mainProgram = "ctl";
    platforms = lib.platforms.all;
  };
})