3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/icmake/default.nix
2017-11-10 21:44:45 +01:00

43 lines
867 B
Nix

{ stdenv, fetchFromGitHub, gcc }:
stdenv.mkDerivation rec {
name = "icmake-${version}";
version = "9.02.03";
src = fetchFromGitHub {
sha256 = "1g3pdcd2i8n29rqwrdg6bd7qnsii55hi0rnma86hy0pm5cshpwi5";
rev = version;
repo = "icmake";
owner = "fbb-git";
};
setSourceRoot = ''
sourceRoot=$(echo */icmake)
'';
buildInputs = [ gcc ];
preConfigure = ''
patchShebangs ./
substituteInPlace INSTALL.im --replace "usr/" ""
'';
buildPhase = ''
./icm_prepare $out
./icm_bootstrap x
'';
installPhase = ''
./icm_install all /
'';
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; [ nckx pSub ];
platforms = platforms.linux;
};
}