@@ -1,26 +1,40 @@
1−{lib, stdenv, fetchFromGitHub, rpm}:
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, fetchpatch
5+, rpm
6+}:
27
38stdenv.mkDerivation rec {
49 pname = "epm";
5− version = "4.4";
10+ version = "5.0.0";
611
712 src = fetchFromGitHub {
8− repo = "epm";
9− owner = "michaelrsweet";
13+ owner = "jimjag";
14+ repo = pname;
1015 rev = "v${version}";
11− sha256 = "0kaw7v2m20qirapkps4dna6nf9xibnwljvvv0l9vpvi920kw7j7p";
16+ hash = "sha256-o4B5lWBeve+U70FDgF1DrtNrXxaEY4etkPpwbqF7fmc=";
1217 };
1318
14− buildInputs = [ rpm ];
19+ patches = [
20+ # Makefile fix: INSTALL command
21+ (fetchpatch {
22+ url = "https://github.com/jimjag/epm/commit/dc5fcd6fa6e3a74baa28be060769a2b47f9368e7.patch";
23+ sha256 = "1gfyz493w0larin841xx3xalb7m3sp1r2vv1xki6rz35ybrnb96c";
24+ })
25+ # Makefile fix: man pages filenames and docdir target
26+ (fetchpatch {
27+ url = "https://github.com/jimjag/epm/commit/96bb48d4d7b463a09d5a25debfb51c88dcd7398c.patch";
28+ sha256 = "11aws0qac6vyy3w5z39vkjy4symmfzxfq9qgbgkk74fvx9vax42a";
29+ })
30+ ];
1531
16− preInstall = ''
17− sed -i 's/README/README.md/' Makefile
18− '';
32+ buildInputs = [ rpm ];
1933
2034 meta = with lib; {
2135 description = "The ESP Package Manager generates distribution archives for a variety of platforms";
22− homepage = "https://www.msweet.org/projects.php?Z2";
23− license = licenses.gpl2;
36+ homepage = "https://jimjag.github.io/epm/";
37+ license = licenses.asl20;
2438 maintainers = with maintainers; [ pSub ];
2539 platforms = platforms.unix;
2640 };