lol
1{ stdenv, fetchFromGitHub }:
2
3let version = "7.22.01"; in
4stdenv.mkDerivation {
5 name = "icmake-${version}";
6
7 src = fetchFromGitHub {
8 sha256 = "1pgl8bami4v86ja40in4fsdx940f6q85l1s4b9k53zl29pm85v5k";
9 rev = version;
10 repo = "icmake";
11 owner = "fbb-git";
12 };
13
14 sourceRoot = "icmake-${version}-src/icmake";
15
16 preConfigure = ''
17 patchShebangs ./
18 substituteInPlace INSTALL.im --replace "usr/" ""
19 '';
20
21 buildPhase = ''
22 ./icm_bootstrap $out
23 '';
24
25 installPhase = ''
26 ./icm_install all /
27 '';
28
29 meta = with stdenv.lib; {
30 inherit version;
31 description = "A program maintenance (make) utility using a C-like grammar";
32 homepage = https://fbb-git.github.io/icmake/;
33 license = licenses.gpl3;
34 maintainers = with maintainers; [ nckx pSub ];
35 platforms = platforms.linux;
36 };
37}