lol

icmake: Sourceforge -> (fetchFrom)GitHub

Also add myself as a maintainer.

CC@ pSub

+20 -11
+20 -11
pkgs/development/tools/build-managers/icmake/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchFromGitHub }: 2 2 3 - stdenv.mkDerivation rec { 3 + let version = "7.22.01"; in 4 + stdenv.mkDerivation { 4 5 name = "icmake-${version}"; 5 - version = "7.22.01"; 6 6 7 - src = fetchurl { 8 - url = "mirror://sourceforge/icmake/icmake_${version}.orig.tar.gz"; 9 - sha256 = "1iv6p9cyvr9i2sjhklplr65llg1ycxqy7z4dfgn0nkwxgs9yf8mm"; 7 + src = fetchFromGitHub { 8 + sha256 = "1pgl8bami4v86ja40in4fsdx940f6q85l1s4b9k53zl29pm85v5k"; 9 + rev = version; 10 + repo = "icmake"; 11 + owner = "fbb-git"; 10 12 }; 13 + 14 + sourceRoot = "icmake-${version}-src/icmake"; 11 15 12 16 preConfigure = '' 13 17 patchShebangs ./ 14 - sed -i "s;usr/;;g" INSTALL.im 18 + substituteInPlace INSTALL.im --replace "usr/" "" 15 19 ''; 16 20 17 - buildPhase = "./icm_bootstrap $out"; 21 + buildPhase = '' 22 + ./icm_bootstrap $out 23 + ''; 18 24 19 - installPhase = "./icm_install all /"; 25 + installPhase = '' 26 + ./icm_install all / 27 + ''; 20 28 21 29 meta = with stdenv.lib; { 30 + inherit version; 22 31 description = "A program maintenance (make) utility using a C-like grammar"; 23 - homepage = http://icmake.sourceforge.net/; 32 + homepage = https://fbb-git.github.io/icmake/; 24 33 license = licenses.gpl3; 25 - maintainers = with maintainers; [ pSub ]; 34 + maintainers = with maintainers; [ nckx pSub ]; 26 35 platforms = platforms.linux; 27 36 }; 28 37 }