summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/icmake/default.nix
blob: a4e8186498542bfd4a2d958b1f16b16e87789198 (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 }:

stdenv.mkDerivation rec {
  name = "icmake-${version}";
  version = "7.22.00";

  src = fetchurl {
    url = "mirror://sourceforge/icmake/icmake_${version}.orig.tar.gz";
    sha256 = "013vxnilygad981zb2608f95q2h3svvbgpjvzvk16qyxjy4y4q6z";
  };

  preConfigure = ''
    patchShebangs ./
    sed -i "s;usr/;;g" INSTALL.im
  '';

  buildPhase = "./icm_bootstrap $out";

  installPhase = "./icm_install all /";

  meta = with stdenv.lib; {
    description = "A program maintenance (make) utility using a C-like grammar";
    homepage = http://icmake.sourceforge.net/;
    license = licenses.gpl3;
    maintainers = with maintainers; [ pSub ];
    platforms = platforms.linux;
  };
}