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

47 lines
996 B
Nix
Raw Normal View History

2018-03-06 19:20:37 +00:00
{ stdenv, fetchFromGitHub, makeWrapper, gcc, ncurses }:
2016-01-09 19:04:32 +00:00
stdenv.mkDerivation rec {
name = "icmake-${version}";
2018-03-18 19:43:54 +00:00
version = "9.02.07";
src = fetchFromGitHub {
2018-03-18 19:43:54 +00:00
sha256 = "1q3rwri5s1sqm4h75bahkjnlym4bk2ygg4fb75yrniwnj8rhdp12";
rev = version;
repo = "icmake";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */icmake)
'';
2018-03-06 19:20:37 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ gcc ];
2016-01-09 19:04:32 +00:00
preConfigure = ''
patchShebangs ./
substituteInPlace INSTALL.im --replace "usr/" ""
'';
buildPhase = ''
2016-01-09 19:04:32 +00:00
./icm_prepare $out
./icm_bootstrap x
'';
installPhase = ''
./icm_install all /
2018-03-06 19:20:37 +00: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.github.io/icmake/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
2015-01-21 12:19:43 +00:00
}