at 18.03-beta 42 lines 862 B view raw
1{ stdenv, fetchFromGitHub, gcc }: 2 3stdenv.mkDerivation rec { 4 name = "icmake-${version}"; 5 version = "9.02.06"; 6 7 src = fetchFromGitHub { 8 sha256 = "1hs7fhqpkhlrjvjhfarf5bmxl8dw3r0immzdib27gwh3sfzgpx0b"; 9 rev = version; 10 repo = "icmake"; 11 owner = "fbb-git"; 12 }; 13 14 15 setSourceRoot = '' 16 sourceRoot=$(echo */icmake) 17 ''; 18 19 buildInputs = [ gcc ]; 20 21 preConfigure = '' 22 patchShebangs ./ 23 substituteInPlace INSTALL.im --replace "usr/" "" 24 ''; 25 26 buildPhase = '' 27 ./icm_prepare $out 28 ./icm_bootstrap x 29 ''; 30 31 installPhase = '' 32 ./icm_install all / 33 ''; 34 35 meta = with stdenv.lib; { 36 description = "A program maintenance (make) utility using a C-like grammar"; 37 homepage = https://fbb-git.github.io/icmake/; 38 license = licenses.gpl3; 39 maintainers = with maintainers; [ pSub ]; 40 platforms = platforms.linux; 41 }; 42}