1{ lib
2, stdenv
3, fetchFromGitHub
4, fetchpatch
5, rpm
6}:
7
8stdenv.mkDerivation rec {
9 pname = "epm";
10 version = "5.0.0";
11
12 src = fetchFromGitHub {
13 owner = "jimjag";
14 repo = pname;
15 rev = "v${version}";
16 hash = "sha256-o4B5lWBeve+U70FDgF1DrtNrXxaEY4etkPpwbqF7fmc=";
17 };
18
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 ];
31
32 buildInputs = [ rpm ];
33
34 meta = with lib; {
35 description = "ESP Package Manager generates distribution archives for a variety of platforms";
36 homepage = "https://jimjag.github.io/epm/";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ pSub ];
39 platforms = platforms.unix;
40 };
41}