mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
check,
|
|
cmake,
|
|
doxygen,
|
|
expat,
|
|
fetchFromGitHub,
|
|
libxml2,
|
|
python3,
|
|
sphinx,
|
|
stdenv,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libcomps";
|
|
version = "0.1.24";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"py"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpm-software-management";
|
|
repo = "libcomps";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-O60+k3ZnSfP+wFI55s/WfgrPbvu52uXZh88Ebg3Nf+c=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Comps XML file manipulation library";
|
|
homepage = "https://github.com/rpm-software-management/libcomps";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ katexochen ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|