2018-07-01 13:31:30 +02:00
|
|
|
{ stdenv, fetchFromGitLab, makeWrapper, gcc, ncurses }:
|
2014-11-13 17:44:54 +01:00
|
|
|
|
2016-01-09 20:04:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "icmake";
|
2018-07-01 13:31:30 +02:00
|
|
|
version = "9.02.08";
|
2014-11-13 17:44:54 +01:00
|
|
|
|
2018-07-01 13:31:30 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
sha256 = "1pr5lagmdls3clzwa2xwcfa3k5750rf7i0j3zld0xirb41zx07q2";
|
2015-09-01 03:55:29 +02:00
|
|
|
rev = version;
|
|
|
|
repo = "icmake";
|
|
|
|
owner = "fbb-git";
|
2014-11-13 17:44:54 +01:00
|
|
|
};
|
|
|
|
|
2017-11-02 13:54:20 +01:00
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */icmake)
|
|
|
|
'';
|
2015-09-01 03:55:29 +02:00
|
|
|
|
2018-03-06 20:20:37 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
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 /
|
2018-03-06 20:20:37 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/icmbuild \
|
|
|
|
--prefix PATH : ${ncurses}/bin
|
2015-09-01 03:55:29 +02:00
|
|
|
'';
|
2014-11-13 17:44:54 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A program maintenance (make) utility using a C-like grammar";
|
2018-07-01 13:31:30 +02:00
|
|
|
homepage = https://fbb-git.gitlab.io/icmake/;
|
2014-11-13 17:44:54 +01:00
|
|
|
license = licenses.gpl3;
|
2018-01-16 22:59:13 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-11-13 17:44:54 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-21 13:19:43 +01:00
|
|
|
}
|