nixpkgs-suyu/pkgs/development/tools/build-managers/icmake/default.nix

47 lines
986 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, makeWrapper, gcc, ncurses }:
2016-01-09 20:04:32 +01:00
stdenv.mkDerivation rec {
pname = "icmake";
version = "9.02.08";
src = fetchFromGitLab {
sha256 = "1pr5lagmdls3clzwa2xwcfa3k5750rf7i0j3zld0xirb41zx07q2";
rev = version;
repo = "icmake";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */icmake)
'';
2018-03-06 20:20:37 +01:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ gcc ];
2016-01-09 20:04:32 +01:00
preConfigure = ''
patchShebangs ./
substituteInPlace INSTALL.im --replace "usr/" ""
'';
buildPhase = ''
2016-01-09 20:04:32 +01:00
./icm_prepare $out
./icm_bootstrap x
'';
installPhase = ''
./icm_install all /
2018-03-06 20:20:37 +01:00
wrapProgram $out/bin/icmbuild \
--prefix PATH : ${ncurses}/bin
'';
meta = with stdenv.lib; {
description = "A program maintenance (make) utility using a C-like grammar";
homepage = https://fbb-git.gitlab.io/icmake/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
2015-01-21 13:19:43 +01:00
}