about summary refs log tree commit diff
path: root/pkgs/applications/misc/gnome-multi-writer/default.nix
blob: f73016681c0eeaa8038760d23a03b08c628cb61b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ lib, stdenv
, fetchurl
, appstream-glib
, desktop-file-utils
, gettext
, glib
, gnome
, gtk3
, gusb
, libcanberra-gtk3
, libgudev
, meson
, ninja
, pkg-config
, wrapGAppsHook3
, polkit
, udisks
}:

stdenv.mkDerivation rec {
  pname = "gnome-multi-writer";
  version = "3.35.90";

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp";
  };

  nativeBuildInputs = [
    appstream-glib
    desktop-file-utils
    gettext
    meson
    ninja
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    glib
    gtk3
    gusb
    libcanberra-gtk3
    libgudev
    polkit
    udisks
  ];

  passthru = {
    updateScript = gnome.updateScript {
      packageName = pname;
    };
  };

  meta = with lib; {
    description = "Tool for writing an ISO file to multiple USB devices at once";
    mainProgram = "gnome-multi-writer";
    homepage = "https://gitlab.gnome.org/GNOME/gnome-multi-writer";
    license = licenses.gpl2Plus;
    maintainers = teams.gnome.members;
    platforms = platforms.linux;
  };
}