diff options
| author | Chuang Zhu <git@chuang.cz> | 2022-11-26 17:54:58 +0800 |
|---|---|---|
| committer | Chuang Zhu <git@chuang.cz> | 2022-11-26 17:54:58 +0800 |
| commit | 02590ae0639f8f7f17ef2812d191f4b29fb77e87 (patch) | |
| tree | c75433f120784723c6001de3bed7fb142f0997cf | |
| parent | pkgsMusl.libavc1394: fix build (#202848) (diff) | |
| download | nixpkgs-02590ae0639f8f7f17ef2812d191f4b29fb77e87.tar.gz | |
thumbdrives: init at 0.3.1
| -rw-r--r-- | pkgs/applications/system/thumbdrives/default.nix | 62 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 64 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; + }; +} 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 { }; |
