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