nixpkgs/pkgs/by-name/ep/epm/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

42 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, rpm
}:
stdenv.mkDerivation rec {
pname = "epm";
version = "5.0.0";
src = fetchFromGitHub {
owner = "jimjag";
repo = pname;
rev = "v${version}";
hash = "sha256-o4B5lWBeve+U70FDgF1DrtNrXxaEY4etkPpwbqF7fmc=";
};
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";
})
];
buildInputs = [ rpm ];
meta = with lib; {
description = "ESP Package Manager generates distribution archives for a variety of platforms";
homepage = "https://jimjag.github.io/epm/";
license = licenses.asl20;
maintainers = with maintainers; [ pSub ];
platforms = platforms.unix;
};
}