vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / th / thumbdrives / package.nix
blobf4f4015c8ed4f5266f6e6e7a8e16c39b52d16970
2   lib,
3   python3,
4   fetchFromSourcehut,
5   gtk3,
6   libhandy_0,
7   gobject-introspection,
8   meson,
9   pkg-config,
10   ninja,
11   gettext,
12   glib,
13   desktop-file-utils,
14   wrapGAppsHook3,
17 python3.pkgs.buildPythonApplication rec {
18   pname = "thumbdrives";
19   version = "0.3.2";
21   format = "other";
23   src = fetchFromSourcehut {
24     owner = "~martijnbraam";
25     repo = pname;
26     rev = version;
27     hash = "sha256-Mh3NSEYscnzw6kjR9m0XbTygj07cIQwdyLcdLpfKi3Y=";
28   };
30   postPatch = ''
31     patchShebangs build-aux/meson
32   '';
34   nativeBuildInputs = [
35     meson
36     pkg-config
37     ninja
38     gettext
39     glib
40     gtk3
41     desktop-file-utils
42     wrapGAppsHook3
43     gobject-introspection
44   ];
46   buildInputs = [
47     gtk3
48     libhandy_0
49   ];
51   propagatedBuildInputs = with python3.pkgs; [
52     pygobject3
53     pyxdg
54   ];
56   meta = with lib; {
57     description = "USB mass storage emulator for Linux handhelds";
58     homepage = "https://sr.ht/~martijnbraam/thumbdrives/";
59     license = licenses.mit;
60     maintainers = with maintainers; [
61       chuangzhu
62       Luflosi
63     ];
64     platforms = platforms.linux;
65   };