nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkgconfig, ilmbase, libtiff, openexr }:
2
3stdenv.mkDerivation rec {
4 pname = "ctl";
5 version = "1.5.2";
6
7 src = fetchFromGitHub {
8 owner = "ampas";
9 repo = pname;
10 rev = "${pname}-${version}";
11 sha256 = "0a698rd1cmixh3mk4r1xa6rjli8b8b7dbx89pb43xkgqxy67glwx";
12 };
13
14 patches = [
15 (fetchpatch {
16 name = "ctl-1.5.2-ilm_230.patch";
17 url = "https://src.fedoraproject.org/rpms/CTL/raw/9d7c15a91bccdc0a9485d463bf2789be72e6b17d/f/ctl-1.5.2-ilm_230.patch";
18 sha256 = "0mdx7llwrm0q8ai53zhyxi40i9h5s339dbkqpqv30yzi2xpnfj3d";
19 })
20 ];
21
22 nativeBuildInputs = [ cmake pkgconfig ];
23 buildInputs = [ libtiff ilmbase openexr ];
24
25 meta = with stdenv.lib; {
26 description = "Color Transformation Language";
27 homepage = "https://github.com/ampas/CTL";
28 license = "A.M.P.A.S"; # BSD-derivative, free but GPL incompatible
29 platforms = platforms.all;
30 };
31}