From 02590ae0639f8f7f17ef2812d191f4b29fb77e87 Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Sat, 26 Nov 2022 17:54:58 +0800 Subject: [PATCH] thumbdrives: init at 0.3.1 --- .../system/thumbdrives/default.nix | 62 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 64 insertions(+) create mode 100644 pkgs/applications/system/thumbdrives/default.nix 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ddd3f57f82b8..c148229ae98c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12040,6 +12040,8 @@ with pkgs; threema-desktop = callPackage ../applications/networking/instant-messengers/threema-desktop { }; + thumbdrives = callPackage ../applications/system/thumbdrives { }; + tidy-viewer = callPackage ../tools/text/tidy-viewer { }; tiled = libsForQt5.callPackage ../applications/editors/tiled { };