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
110
pkgs/tools/package-management/packagekit/default.nix
Normal file
110
pkgs/tools/package-management/packagekit/default.nix
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, gettext
|
||||
, glib
|
||||
, pkg-config
|
||||
, polkit
|
||||
, python3
|
||||
, sqlite
|
||||
, gobject-introspection
|
||||
, vala
|
||||
, gtk-doc
|
||||
, nix
|
||||
, boost
|
||||
, meson
|
||||
, ninja
|
||||
, libxslt
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_42
|
||||
, libxml2
|
||||
, gst_all_1
|
||||
, gtk3
|
||||
, enableCommandNotFound ? false
|
||||
, enableBashCompletion ? false
|
||||
, bash-completion ? null
|
||||
, enableSystemd ? stdenv.isLinux
|
||||
, systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "packagekit";
|
||||
version = "1.2.5.1pre";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PackageKit";
|
||||
repo = "PackageKit";
|
||||
rev = "30bb82da8d4161330a6d7a20c9989149303421a1";
|
||||
sha256 = "k2osc2v0OuGrNjwxdqn785RsbHEJP3p79PG9YqnVE3U=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
polkit
|
||||
python3
|
||||
gobject-introspection
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gtk3
|
||||
sqlite
|
||||
nix
|
||||
boost
|
||||
] ++ lib.optional enableSystemd systemd
|
||||
++ lib.optional enableBashCompletion bash-completion;
|
||||
nativeBuildInputs = [
|
||||
vala
|
||||
gettext
|
||||
pkg-config
|
||||
gtk-doc
|
||||
meson
|
||||
libxslt
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_42
|
||||
libxml2
|
||||
ninja
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
(if enableSystemd then "-Dsystemd=true" else "-Dsystem=false")
|
||||
"-Dpackaging_backend=nix"
|
||||
"-Ddbus_sys=${placeholder "out"}/share/dbus-1/system.d"
|
||||
"-Ddbus_services=${placeholder "out"}/share/dbus-1/system-services"
|
||||
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
"-Dcron=false"
|
||||
"-Dgtk_doc=true"
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
]
|
||||
++ lib.optional (!enableBashCompletion) "-Dbash_completion=false"
|
||||
++ lib.optional (!enableCommandNotFound) "-Dbash_command_not_found=false";
|
||||
|
||||
postPatch = ''
|
||||
# HACK: we want packagekit to look in /etc for configs but install
|
||||
# those files in $out/etc ; we just override the runtime paths here
|
||||
# same for /var & $out/var
|
||||
substituteInPlace etc/meson.build \
|
||||
--replace "install_dir: join_paths(get_option('sysconfdir'), 'PackageKit')" "install_dir: join_paths('$out', 'etc', 'PackageKit')"
|
||||
substituteInPlace data/meson.build \
|
||||
--replace "install_dir: join_paths(get_option('localstatedir'), 'lib', 'PackageKit')," "install_dir: join_paths('$out', 'var', 'lib', 'PackageKit'),"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "System to facilitate installing and updating packages";
|
||||
longDescription = ''
|
||||
PackageKit is a system designed to make installing and updating software
|
||||
on your computer easier. The primary design goal is to unify all the
|
||||
software graphical tools used in different distributions, and use some of
|
||||
the latest technology like PolicyKit. The actual nuts-and-bolts distro
|
||||
tool (dnf, apt, etc) is used by PackageKit using compiled and scripted
|
||||
helpers. PackageKit isn't meant to replace these tools, instead providing
|
||||
a common set of abstractions that can be used by standard GUI and text
|
||||
mode package managers.
|
||||
'';
|
||||
homepage = "http://www.packagekit.org/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ matthewbauer ];
|
||||
};
|
||||
}
|
||||
24
pkgs/tools/package-management/packagekit/qt.nix
Normal file
24
pkgs/tools/package-management/packagekit/qt.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, pkg-config
|
||||
, qttools, packagekit }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "packagekit-qt";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hughsie";
|
||||
repo = "PackageKit-Qt";
|
||||
rev = "v${version}";
|
||||
sha256 = "1d20r503msw1vix3nb6a8bmdqld7fj8k9jk33bkqsc610a2zsms6";
|
||||
};
|
||||
|
||||
buildInputs = [ packagekit ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config qttools ];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = packagekit.meta // {
|
||||
description = "System to facilitate installing and updating packages - Qt";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue