2016-07-07 11:30:36 +02:00
|
|
|
{ stdenv, fetchFromGitHub, gcc }:
|
2014-11-13 17:44:54 +01:00
|
|
|
|
2016-01-09 20:04:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-13 17:44:54 +01:00
|
|
|
name = "icmake-${version}";
|
2016-11-06 02:18:46 +01:00
|
|
|
version = "9.02.02";
|
2014-11-13 17:44:54 +01:00
|
|
|
|
2015-09-01 03:55:29 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-11-06 02:18:46 +01:00
|
|
|
sha256 = "0f7w3b8r2h6ckgzc6wbfbw5yyxia0f3j3acmzi1yzylj6ak05mmd";
|
2015-09-01 03:55:29 +02:00
|
|
|
rev = version;
|
|
|
|
repo = "icmake";
|
|
|
|
owner = "fbb-git";
|
2014-11-13 17:44:54 +01:00
|
|
|
};
|
|
|
|
|
2015-09-01 03:55:29 +02:00
|
|
|
sourceRoot = "icmake-${version}-src/icmake";
|
|
|
|
|
2016-07-07 11:30:36 +02:00
|
|
|
buildInputs = [ gcc ];
|
2016-01-09 20:04:32 +01:00
|
|
|
|
2014-11-13 17:44:54 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./
|
2015-09-01 03:55:29 +02:00
|
|
|
substituteInPlace INSTALL.im --replace "usr/" ""
|
2014-11-13 17:44:54 +01:00
|
|
|
'';
|
|
|
|
|
2015-09-01 03:55:29 +02:00
|
|
|
buildPhase = ''
|
2016-01-09 20:04:32 +01:00
|
|
|
./icm_prepare $out
|
|
|
|
./icm_bootstrap x
|
2015-09-01 03:55:29 +02:00
|
|
|
'';
|
2014-11-13 17:44:54 +01:00
|
|
|
|
2015-09-01 03:55:29 +02:00
|
|
|
installPhase = ''
|
|
|
|
./icm_install all /
|
|
|
|
'';
|
2014-11-13 17:44:54 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A program maintenance (make) utility using a C-like grammar";
|
2015-09-01 03:55:29 +02:00
|
|
|
homepage = https://fbb-git.github.io/icmake/;
|
2014-11-13 17:44:54 +01:00
|
|
|
license = licenses.gpl3;
|
2015-09-01 03:55:29 +02:00
|
|
|
maintainers = with maintainers; [ nckx pSub ];
|
2014-11-13 17:44:54 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-21 13:19:43 +01:00
|
|
|
}
|