summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/system
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-12-13 17:19:23 +0100
committerGitHub <noreply@github.com>2022-12-13 17:19:23 +0100
commit0180c8ff598d8a6322990d21ab401ad1e75bd994 (patch)
tree62a72418da0bf24590d57579abf2e7b44154dd24 /pkgs/applications/system
parentcb40c4fcd5aeba109e192b59466bcbddd1ce5173 (diff)
parent02590ae0639f8f7f17ef2812d191f4b29fb77e87 (diff)
Merge pull request #203013 from chuangzhu/thumbdrives
Diffstat (limited to 'pkgs/applications/system')
-rw-r--r--pkgs/applications/system/thumbdrives/default.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/applications/system/thumbdrives/default.nix b/pkgs/applications/system/thumbdrives/default.nix
new file mode 100644
index 000000000000..d70ea9580629
--- /dev/null
+++ b/pkgs/applications/system/thumbdrives/default.nix
@@ -0,0 +1,62 @@
+{ lib
+, python3
+, fetchFromSourcehut
+, gtk3
+, libhandy_0
+, gobject-introspection
+, meson
+, pkg-config
+, ninja
+, gettext
+, glib
+, desktop-file-utils
+, wrapGAppsHook
+}:
+
+python3.pkgs.buildPythonApplication rec {
+ pname = "thumbdrives";
+ version = "0.3.1";
+
+ format = "other";
+
+ src = fetchFromSourcehut {
+ owner = "~martijnbraam";
+ repo = pname;
+ rev = version;
+ sha256 = "sha256-CPZKswbvsG61A6J512FOCKAntoJ0sUb2s+MKb0rO+Xw=";
+ };
+
+ postPatch = ''
+ patchShebangs build-aux/meson
+ '';
+
+ nativeBuildInputs = [
+ meson
+ pkg-config
+ ninja
+ gettext
+ glib
+ gtk3
+ desktop-file-utils
+ wrapGAppsHook
+ gobject-introspection
+ ];
+
+ buildInputs = [
+ gtk3
+ libhandy_0
+ ];
+
+ propagatedBuildInputs = with python3.pkgs; [
+ pygobject3
+ pyxdg
+ ];
+
+ meta = with lib; {
+ description = "USB mass storage emulator for Linux handhelds";
+ homepage = "https://sr.ht/~martijnbraam/thumbdrives/";
+ license = licenses.mit;
+ maintainers = with maintainers; [ chuangzhu ];
+ platforms = platforms.linux;
+ };
+}