2015-09-01 02:55:29 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-11-13 16:44:54 +00:00
|
|
|
|
2015-10-28 16:27:04 +00:00
|
|
|
let version = "7.23.02"; in
|
2015-09-01 02:55:29 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-11-13 16:44:54 +00:00
|
|
|
name = "icmake-${version}";
|
|
|
|
|
2015-09-01 02:55:29 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-10-28 16:27:04 +00:00
|
|
|
sha256 = "0gp2f8bw9i7vccsbz878mri0k6fls2x8hklbbr6mayag397gr928";
|
2015-09-01 02:55:29 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "icmake";
|
|
|
|
owner = "fbb-git";
|
2014-11-13 16:44:54 +00:00
|
|
|
};
|
|
|
|
|
2015-09-01 02:55:29 +01:00
|
|
|
sourceRoot = "icmake-${version}-src/icmake";
|
|
|
|
|
2014-11-13 16:44:54 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./
|
2015-09-01 02:55:29 +01:00
|
|
|
substituteInPlace INSTALL.im --replace "usr/" ""
|
2014-11-13 16:44:54 +00:00
|
|
|
'';
|
|
|
|
|
2015-09-01 02:55:29 +01:00
|
|
|
buildPhase = ''
|
|
|
|
./icm_bootstrap $out
|
|
|
|
'';
|
2014-11-13 16:44:54 +00:00
|
|
|
|
2015-09-01 02:55:29 +01:00
|
|
|
installPhase = ''
|
|
|
|
./icm_install all /
|
|
|
|
'';
|
2014-11-13 16:44:54 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-09-01 02:55:29 +01:00
|
|
|
inherit version;
|
2014-11-13 16:44:54 +00:00
|
|
|
description = "A program maintenance (make) utility using a C-like grammar";
|
2015-09-01 02:55:29 +01:00
|
|
|
homepage = https://fbb-git.github.io/icmake/;
|
2014-11-13 16:44:54 +00:00
|
|
|
license = licenses.gpl3;
|
2015-09-01 02:55:29 +01:00
|
|
|
maintainers = with maintainers; [ nckx pSub ];
|
2014-11-13 16:44:54 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-21 12:19:43 +00:00
|
|
|
}
|