icmake: Sourceforge -> (fetchFrom)GitHub

Also add myself as a maintainer.

CC@ pSub
This commit is contained in:
Tobias Geerinckx-Rice 2015-09-01 03:55:29 +02:00
parent 7e4675cb00
commit 687d60ec73

View File

@ -1,28 +1,37 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
let version = "7.22.01"; in
stdenv.mkDerivation {
name = "icmake-${version}";
version = "7.22.01";
src = fetchurl {
url = "mirror://sourceforge/icmake/icmake_${version}.orig.tar.gz";
sha256 = "1iv6p9cyvr9i2sjhklplr65llg1ycxqy7z4dfgn0nkwxgs9yf8mm";
src = fetchFromGitHub {
sha256 = "1pgl8bami4v86ja40in4fsdx940f6q85l1s4b9k53zl29pm85v5k";
rev = version;
repo = "icmake";
owner = "fbb-git";
};
sourceRoot = "icmake-${version}-src/icmake";
preConfigure = ''
patchShebangs ./
sed -i "s;usr/;;g" INSTALL.im
substituteInPlace INSTALL.im --replace "usr/" ""
'';
buildPhase = "./icm_bootstrap $out";
buildPhase = ''
./icm_bootstrap $out
'';
installPhase = "./icm_install all /";
installPhase = ''
./icm_install all /
'';
meta = with stdenv.lib; {
inherit version;
description = "A program maintenance (make) utility using a C-like grammar";
homepage = http://icmake.sourceforge.net/;
homepage = https://fbb-git.github.io/icmake/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
maintainers = with maintainers; [ nckx pSub ];
platforms = platforms.linux;
};
}