about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/pngtoico/default.nix
blob: ed8fa5ee5192fac28bd5389bd7d0ee9fc6e7e585 (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
{ stdenv, fetchurl, libpng }:

stdenv.mkDerivation {
  name = "pngtoico-1.0";

  src = fetchurl {
    url = mirror://kernel/software/graphics/pngtoico/pngtoico-1.0.tar.gz;
    sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph";
  };

  configurePhase = ''
    sed -i s,/usr/local,$out, Makefile
  '';

  buildInputs = [ libpng ];

  meta = {
    homepage = https://www.kernel.org/pub/software/graphics/pngtoico/;
    description = "Small utility to convert a set of PNG images to Microsoft ICO format";
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = with stdenv.lib.platforms; linux;
  };
}