uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/tools/package-management/libdnf/default.nix
Normal file
64
pkgs/tools/package-management/libdnf/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, gettext, pkg-config, gpgme, libsolv, openssl, check
|
||||
, json_c, libmodulemd, libsmartcols, sqlite, librepo, libyaml, rpm, zchunk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libdnf";
|
||||
version = "0.66.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rpm-software-management";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-fQyNm51roz6wn9QAE8/ZIrutyWP45xiKVHzn8n0LcwE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gettext
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
check
|
||||
gpgme
|
||||
openssl
|
||||
json_c
|
||||
libsmartcols
|
||||
libyaml
|
||||
libmodulemd
|
||||
zchunk
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sqlite
|
||||
libsolv
|
||||
librepo
|
||||
rpm
|
||||
];
|
||||
|
||||
# See https://github.com/NixOS/nixpkgs/issues/107430
|
||||
prePatch = ''
|
||||
cp ${libsolv}/share/cmake/Modules/FindLibSolv.cmake cmake/modules/
|
||||
'';
|
||||
|
||||
# See https://github.com/NixOS/nixpkgs/issues/107428
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "enable_testing()" "" \
|
||||
--replace "add_subdirectory(tests)" ""
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DWITH_GTKDOC=OFF"
|
||||
"-DWITH_HTML=OFF"
|
||||
"-DWITH_BINDINGS=OFF"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Package management library.";
|
||||
homepage = "https://github.com/rpm-software-management/libdnf";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ rb2k ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue