summary refs log tree commit diff
path: root/pkgs/development/tools/misc/epm
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2022-02-06 10:33:00 +0100
committerGitHub <noreply@github.com>2022-02-06 10:33:00 +0100
commitd5ff49afba8fac1a64a7739da24ab13fc9b7a1d6 (patch)
tree920ce3d1edfc8a754e1b5fddd0d9a19dcfe4b53b /pkgs/development/tools/misc/epm
parent00089fcaf076fad6146df8e398fbb77f17e48fa5 (diff)
downloadnixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar.gz
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar.bz2
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar.lz
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar.xz
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.tar.zst
nixpkgs-d5ff49afba8fac1a64a7739da24ab13fc9b7a1d6.zip
epm: 4.4 -> 5.0.0
- upstream has moved (new maintainer)
- license has changed to Apache 2.0
Diffstat (limited to 'pkgs/development/tools/misc/epm')
-rw-r--r--pkgs/development/tools/misc/epm/default.nix36
1 files changed, 25 insertions, 11 deletions
diff --git a/pkgs/development/tools/misc/epm/default.nix b/pkgs/development/tools/misc/epm/default.nix
index 8f5921783e2..b83bb8d3328 100644
--- a/pkgs/development/tools/misc/epm/default.nix
+++ b/pkgs/development/tools/misc/epm/default.nix
@@ -1,26 +1,40 @@
-{lib, stdenv, fetchFromGitHub, rpm}:
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchpatch
+, rpm
+}:
 
 stdenv.mkDerivation rec {
   pname = "epm";
-  version = "4.4";
+  version = "5.0.0";
 
   src = fetchFromGitHub {
-    repo = "epm";
-    owner = "michaelrsweet";
+    owner = "jimjag";
+    repo = pname;
     rev = "v${version}";
-    sha256 = "0kaw7v2m20qirapkps4dna6nf9xibnwljvvv0l9vpvi920kw7j7p";
+    hash = "sha256-o4B5lWBeve+U70FDgF1DrtNrXxaEY4etkPpwbqF7fmc=";
   };
 
-  buildInputs = [ rpm ];
+  patches = [
+    # Makefile fix: INSTALL command
+    (fetchpatch {
+      url = "https://github.com/jimjag/epm/commit/dc5fcd6fa6e3a74baa28be060769a2b47f9368e7.patch";
+      sha256 = "1gfyz493w0larin841xx3xalb7m3sp1r2vv1xki6rz35ybrnb96c";
+    })
+    # Makefile fix: man pages filenames and docdir target
+    (fetchpatch {
+      url = "https://github.com/jimjag/epm/commit/96bb48d4d7b463a09d5a25debfb51c88dcd7398c.patch";
+      sha256 = "11aws0qac6vyy3w5z39vkjy4symmfzxfq9qgbgkk74fvx9vax42a";
+    })
+  ];
 
-  preInstall = ''
-    sed -i 's/README/README.md/' Makefile
-  '';
+  buildInputs = [ rpm ];
 
   meta = with lib; {
     description = "The ESP Package Manager generates distribution archives for a variety of platforms";
-    homepage = "https://www.msweet.org/projects.php?Z2";
-    license = licenses.gpl2;
+    homepage = "https://jimjag.github.io/epm/";
+    license = licenses.asl20;
     maintainers = with maintainers; [ pSub ];
     platforms = platforms.unix;
   };