summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/icmake/default.nix
blob: c0a886e3e48dcc4aaf5243a332a214a511d1b4b3 (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
29
30
31
32
33
34
35
36
37
{ stdenv, fetchFromGitHub }:

let version = "7.23.02"; in
stdenv.mkDerivation {
  name = "icmake-${version}";

  src = fetchFromGitHub {
    sha256 = "0gp2f8bw9i7vccsbz878mri0k6fls2x8hklbbr6mayag397gr928";
    rev = version;
    repo = "icmake";
    owner = "fbb-git";
  };

  sourceRoot = "icmake-${version}-src/icmake";

  preConfigure = ''
    patchShebangs ./
    substituteInPlace INSTALL.im --replace "usr/" ""
  '';

  buildPhase = ''
    ./icm_bootstrap $out
  '';

  installPhase = ''
    ./icm_install all /
  '';

  meta = with stdenv.lib; {
    inherit version;
    description = "A program maintenance (make) utility using a C-like grammar";
    homepage = https://fbb-git.github.io/icmake/;
    license = licenses.gpl3;
    maintainers = with maintainers; [ nckx pSub ];
    platforms = platforms.linux;
  };
}