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