Files
nixpkgs/pkgs/by-name/li/libcomps/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.2 KiB
Nix

{
lib,
check,
cmake,
doxygen,
expat,
fetchFromGitHub,
libxml2,
python3,
sphinx,
stdenv,
zlib,
}:
stdenv.mkDerivation rec {
pname = "libcomps";
version = "0.1.23";
outputs = [
"out"
"dev"
"py"
];
src = fetchFromGitHub {
owner = "rpm-software-management";
repo = "libcomps";
rev = version;
hash = "sha256-6nX6Oa2ACVALOtXDxjowIGKaziZkGZbtkgZzDfuP4PE=";
};
patches = [
./fix-python-install-dir.patch
];
postPatch = ''
substituteInPlace libcomps/src/python/src/CMakeLists.txt \
--replace "@PYTHON_INSTALL_DIR@" "$out/${python3.sitePackages}"
'';
nativeBuildInputs = [
check
cmake
doxygen
python3
sphinx
];
buildInputs = [
expat
libxml2
zlib
];
dontUseCmakeBuildDir = true;
cmakeDir = "libcomps";
postFixup = ''
ls $out/lib
moveToOutput "lib/${python3.libPrefix}" "$py"
'';
meta = with lib; {
description = "Comps XML file manipulation library";
homepage = "https://github.com/rpm-software-management/libcomps";
license = licenses.gpl2Only;
maintainers = with maintainers; [ katexochen ];
platforms = platforms.unix;
};
}