diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-05-17 00:16:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 00:16:15 +0200 |
commit | ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a (patch) | |
tree | 48be82e6a83b8c35ce353e83bc2046930d34ff64 | |
parent | 4db951e4e17cc36795adbfec1c930d1342c263e2 (diff) | |
download | nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar.gz nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar.bz2 nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar.lz nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar.xz nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.tar.zst nixpkgs-ce0cabb49d5bd4f4afca3ec040888f3bd65bb42a.zip |
numberstation: init at 0.4.0 (#122190)
-rw-r--r-- | pkgs/applications/misc/numberstation/default.nix | 68 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/misc/numberstation/default.nix b/pkgs/applications/misc/numberstation/default.nix new file mode 100644 index 00000000000..c51306bb93f --- /dev/null +++ b/pkgs/applications/misc/numberstation/default.nix @@ -0,0 +1,68 @@ +{ lib +, python3 +, fetchFromSourcehut +, desktop-file-utils +, glib +, gobject-introspection +, gtk3 +, libhandy +, librsvg +, meson +, ninja +, pkg-config +, wrapGAppsHook +}: + +python3.pkgs.buildPythonApplication rec { + pname = "numberstation"; + version = "0.4.0"; + + format = "other"; + + src = fetchFromSourcehut { + owner = "~martijnbraam"; + repo = "numberstation"; + rev = version; + sha256 = "038yyffqknr274f7jh5z12y68pjxr37f8y2cn2pwhf605jmbmpwv"; + }; + + postPatch = '' + patchShebangs build-aux/meson + ''; + + nativeBuildInputs = [ + desktop-file-utils + glib + gtk3 + meson + ninja + pkg-config + wrapGAppsHook + ]; + + buildInputs = [ + gobject-introspection + gtk3 + libhandy + librsvg + ]; + + propagatedBuildInputs = with python3.pkgs; [ + keyring + pygobject3 + pyotp + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = with lib; { + description = "TOTP Authentication application for mobile"; + homepage = "https://sr.ht/~martijnbraam/numberstation/"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5f27e342b0e..2487a36818e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7036,6 +7036,8 @@ in ntlmrecon = callPackage ../tools/security/ntlmrecon { }; + numberstation = callPackage ../applications/misc/numberstation { }; + nvchecker = with python3Packages; toPythonApplication nvchecker; miller = callPackage ../tools/text/miller { }; |