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
95
pkgs/development/libraries/xdg-desktop-portal/default.nix
Normal file
95
pkgs/development/libraries/xdg-desktop-portal/default.nix
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
{ lib
|
||||
, acl
|
||||
, autoreconfHook
|
||||
, dbus
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, flatpak
|
||||
, fuse3
|
||||
, systemdMinimal
|
||||
, geoclue2
|
||||
, glib
|
||||
, gsettings-desktop-schemas
|
||||
, json-glib
|
||||
, libportal
|
||||
, libxml2
|
||||
, nixosTests
|
||||
, pipewire
|
||||
, gdk-pixbuf
|
||||
, librsvg
|
||||
, python3
|
||||
, pkg-config
|
||||
, stdenv
|
||||
, substituteAll
|
||||
, wrapGAppsHook
|
||||
, enableGeoLocation ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xdg-desktop-portal";
|
||||
version = "1.14.4";
|
||||
|
||||
outputs = [ "out" "installedTests" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flatpak";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "///X0inMi9Znuhjn9n0HlVLa5/kFWpKorKS8RY9WeYM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
libxml2
|
||||
pkg-config
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
acl
|
||||
dbus
|
||||
flatpak
|
||||
fuse3
|
||||
systemdMinimal # libsystemd
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
json-glib
|
||||
libportal
|
||||
pipewire
|
||||
|
||||
# For icon validator
|
||||
gdk-pixbuf
|
||||
librsvg
|
||||
|
||||
# For document-fuse installed test.
|
||||
(python3.withPackages (pp: with pp; [
|
||||
pygobject3
|
||||
]))
|
||||
] ++ lib.optionals enableGeoLocation [
|
||||
geoclue2
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-installed-tests"
|
||||
] ++ lib.optionals (!enableGeoLocation) [
|
||||
"--disable-geoclue"
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"installed_testdir=${placeholder "installedTests"}/libexec/installed-tests/xdg-desktop-portal"
|
||||
"installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/xdg-desktop-portal"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
installedTests = nixosTests.installed-tests.xdg-desktop-portal;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Desktop integration portals for sandboxed apps";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue