forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, gettext
|
|
, glib
|
|
, gnome3
|
|
, gtk3
|
|
, gusb
|
|
, libcanberra-gtk3
|
|
, libgudev
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, wrapGAppsHook
|
|
, polkit
|
|
, udisks
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-multi-writer";
|
|
version = "3.32.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1apdd8yi12zagf82k376a9wmdm27wzwdxpm2wf2pnwkaf786rmdw";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
gusb
|
|
libcanberra-gtk3
|
|
libgudev
|
|
polkit
|
|
udisks
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool for writing an ISO file to multiple USB devices at once";
|
|
homepage = "https://wiki.gnome.org/Apps/MultiWriter";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|