nixpkgs/pkgs/desktops/gnome/core/gnome-disk-utility/default.nix
2021-07-13 03:57:24 +02:00

86 lines
1.5 KiB
Nix

{ lib
, stdenv
, gettext
, fetchurl
, pkg-config
, udisks2
, libhandy
, libsecret
, libdvdread
, meson
, ninja
, gtk3
, glib
, wrapGAppsHook
, python3
, libnotify
, itstool
, gnome
, libxml2
, gsettings-desktop-schemas
, libcanberra-gtk3
, libxslt
, docbook-xsl-nons
, libpwquality
, systemd
}:
stdenv.mkDerivation rec {
pname = "gnome-disk-utility";
version = "40.2";
src = fetchurl {
url = "mirror://gnome/sources/gnome-disk-utility/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-ztES6qh9j/ohOv1NC62TnPp662cbeySIWaHchNb1Iec=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
itstool
libxslt
docbook-xsl-nons
wrapGAppsHook
python3
libxml2
];
buildInputs = [
gtk3
glib
libhandy
libsecret
libpwquality
libnotify
libdvdread
libcanberra-gtk3
udisks2
gnome.adwaita-icon-theme
systemd
gnome.gnome-settings-daemon
gsettings-desktop-schemas
];
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-disk-utility";
attrPath = "gnome.gnome-disk-utility";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Disks";
description = "A udisks graphical front-end";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}