blob: ac9bfee815e78c2a03c16290036fbd4cc592940f (
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
38
39
40
41
42
|
{ stdenv, fetchFromGitHub, gcc }:
stdenv.mkDerivation rec {
name = "icmake-${version}";
version = "9.02.04";
src = fetchFromGitHub {
sha256 = "0dkqdm7nc3l9kgwkkf545hfbxj7ibkxl7n49wz9m1rcq9pvpmrw3";
rev = version;
repo = "icmake";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */icmake)
'';
buildInputs = [ gcc ];
preConfigure = ''
patchShebangs ./
substituteInPlace INSTALL.im --replace "usr/" ""
'';
buildPhase = ''
./icm_prepare $out
./icm_bootstrap x
'';
installPhase = ''
./icm_install all /
'';
meta = with stdenv.lib; {
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;
};
}
|