2016-01-09 19:04:32 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gcc5 }:
|
2014-11-13 16:44:54 +00:00
|
|
|
|
2016-01-09 19:04:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-13 16:44:54 +00:00
|
|
|
name = "icmake-${version}";
|
2016-02-20 19:27:56 +00:00
|
|
|
version = "8.01.00";
|
2014-11-13 16:44:54 +00:00
|
|
|
|
2015-09-01 02:55:29 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-02-20 19:27:56 +00:00
|
|
|
sha256 = "1vgjywbc4w1agkakfndr2qf0z0ncxisihdv8sz9ipry9f170np39";
|
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";
|
|
|
|
|
2016-01-09 19:04:32 +00:00
|
|
|
buildInputs = [ gcc5 ];
|
|
|
|
|
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 = ''
|
2016-01-09 19:04:32 +00:00
|
|
|
./icm_prepare $out
|
|
|
|
./icm_bootstrap x
|
2015-09-01 02:55:29 +01:00
|
|
|
'';
|
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; {
|
|
|
|
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
|
|
|
}
|