about summary refs log tree commit diff
path: root/pkgs/applications/graphics/exrtools/default.nix
blob: 01af81d4de74e0184d92b6b870d2a9a3a8d1affe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, pkgconfig, openexr, libpng12, libjpeg }:

stdenv.mkDerivation rec {
  name = "exrtools-${version}";
  version = "0.4";

  src = fetchurl {
    url =  "http://scanline.ca/exrtools/${name}.tar.gz";
    sha256 = "0jpkskqs1yjiighab4s91jy0c0qxcscwadfn94xy2mm2bx2qwp4z";
  };

  preConfigure = ''
    CC=${stdenv.cc.targetPrefix}cc
    CXX=${stdenv.cc.targetPrefix}c++
  '';

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ stdenv openexr libpng12 libjpeg ];

  meta = with stdenv.lib; {
    description = "Collection of utilities for manipulating OpenEXR images";
    homepage = http://scanline.ca/exrtools;
    platforms = platforms.linux;
    license = licenses.mit;
    maintainers = [ maintainers.juliendehos ];
  };
}