@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, python2, git }:
1+{ stdenv, fetchFromGitHub, python2, git }:
22
33let
44 name = "stgit-${version}";
@@ -7,9 +7,11 @@ in
77stdenv.mkDerivation {
88 inherit name;
99
10− src = fetchurl {
11− url = "https://github.com/ctmarinas/stgit/archive/v${version}.tar.gz";
12− sha256 = "19fk6vw3pgp2a98wpd4j3kyiyll5dy9bi4921wq1mrky0l53mj00";
10+ src = fetchFromGitHub {
11+ owner = "ctmarinas";
12+ repo = "stgit";
13+ rev = "v${version}";
14+ sha256 = "0ydgg744m671nkhg7h4q2z3b9vpbc9914rbc0wcgimqfqsxkxx2y";
1315 };
1416
1517 buildInputs = [ python2 git ];
@@ -24,12 +26,11 @@ stdenv.mkDerivation {
2426 doCheck = false;
2527 checkTarget = "test";
2628
27− meta = {
28− homepage = http://procode.org/stgit/;
29+ meta = with stdenv.lib; {
2930 description = "A patch manager implemented on top of Git";
30− license = "GPL";
31−
32− maintainers = with stdenv.lib.maintainers; [ the-kenny ];
33− platforms = stdenv.lib.platforms.unix;
31+ homepage = http://procode.org/stgit/;
32+ license = licenses.gpl2;
33+ maintainers = with maintainers; [ the-kenny ];
34+ platforms = platforms.unix;
3435 };
3536}