mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
47 lines
996 B
Nix
47 lines
996 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, gcc, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "icmake-${version}";
|
|
version = "9.02.07";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1q3rwri5s1sqm4h75bahkjnlym4bk2ygg4fb75yrniwnj8rhdp12";
|
|
rev = version;
|
|
repo = "icmake";
|
|
owner = "fbb-git";
|
|
};
|
|
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */icmake)
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ gcc ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./
|
|
substituteInPlace INSTALL.im --replace "usr/" ""
|
|
'';
|
|
|
|
buildPhase = ''
|
|
./icm_prepare $out
|
|
./icm_bootstrap x
|
|
'';
|
|
|
|
installPhase = ''
|
|
./icm_install all /
|
|
|
|
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;
|
|
};
|
|
}
|