summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/system
diff options
context:
space:
mode:
authorChuang Zhu <git@chuang.cz>2022-11-26 17:54:58 +0800
committerChuang Zhu <git@chuang.cz>2022-11-26 17:54:58 +0800
commit02590ae0639f8f7f17ef2812d191f4b29fb77e87 (patch)
treec75433f120784723c6001de3bed7fb142f0997cf /pkgs/applications/system
parent6b86759692b80e2b563e7f6c608f753de4aad3a7 (diff)
thumbdrives: init at 0.3.1
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;
+ };
+}