
Their last commit is from March 28th 2019, about 6 years ago. This PR is in no way intended to diminish Daniels's accomplishments, and they're welcome to just say so if they'd prefer this PR not to be merged. Also, even if it's merged, of course they're always welcome to return to activity and be added back. The intent of this PR is to give more realistic expectations around the maintainership of these packages, and to invite others to step up for maintainership if they rely on those packages. If this is merged, they should probably also be removed from the list of committers for the time being.
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
bzip2,
|
|
glib,
|
|
curl,
|
|
libxml2,
|
|
python3,
|
|
rpm,
|
|
openssl,
|
|
sqlite,
|
|
file,
|
|
xz,
|
|
bash-completion,
|
|
zstd,
|
|
zchunk,
|
|
libmodulemd,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "createrepo_c";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpm-software-management";
|
|
repo = "createrepo_c";
|
|
tag = version;
|
|
hash = "sha256-2mvU2F9rvG4FtDgq+M9VXWg+c+AsW/+tDPaEj7zVmQ0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail 'execute_process(COMMAND ''${PKG_CONFIG_EXECUTABLE} --variable=completionsdir bash-completion OUTPUT_VARIABLE BASHCOMP_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)' "SET(BASHCOMP_DIR \"$out/share/bash-completion/completions\")"
|
|
substituteInPlace src/python/CMakeLists.txt \
|
|
--replace-fail "EXECUTE_PROCESS(COMMAND \''${PYTHON_EXECUTABLE} -c \"from sys import stdout; from sysconfig import get_path; stdout.write(get_path('platlib'))\" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)" "SET(PYTHON_INSTALL_DIR \"$out/${python3.sitePackages}\")"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
rpm
|
|
bash-completion
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
glib
|
|
curl
|
|
libxml2
|
|
python3
|
|
openssl
|
|
sqlite
|
|
file
|
|
xz
|
|
zstd
|
|
zchunk
|
|
libmodulemd
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "C implementation of createrepo";
|
|
homepage = "https://rpm-software-management.github.io/createrepo_c/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = [ ];
|
|
};
|
|
}
|