blob: 2a1136034d21ee0e622e195536bacbd84dee5485 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, check
, cmake
, doxygen
, expat
, fetchFromGitHub
, libxml2
, python
, sphinx
, stdenv
, zlib
}:
stdenv.mkDerivation rec {
pname = "libcomps";
version = "0.1.21";
outputs = [ "out" "dev" "py" ];
src = fetchFromGitHub {
owner = "rpm-software-management";
repo = "libcomps";
rev = version;
hash = "sha256-2ZxU1g5HDWnSxTabnmfyQwz1ZCXK+7kJXLofeFBiwn0=";
};
patches = [
./fix-python-install-dir.patch
];
postPatch = ''
substituteInPlace libcomps/src/python/src/CMakeLists.txt \
--replace "@PYTHON_INSTALL_DIR@" "$out/${python.sitePackages}"
'';
nativeBuildInputs = [
check
cmake
doxygen
python
sphinx
];
buildInputs = [
expat
libxml2
zlib
];
dontUseCmakeBuildDir = true;
cmakeDir = "libcomps";
postFixup = ''
ls $out/lib
moveToOutput "lib/${python.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;
};
}
|