nixpkgs-suyu/pkgs/applications/misc/numberstation/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.1 KiB
Nix
Raw Normal View History

2021-05-17 00:16:15 +02:00
{ lib
, python3
, fetchFromSourcehut
, desktop-file-utils
, glib
, gobject-introspection
, gtk3
, libhandy
, librsvg
, meson
, ninja
, pkg-config
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "numberstation";
2022-09-12 08:10:37 +02:00
version = "1.2.0";
2021-05-17 00:16:15 +02:00
format = "other";
src = fetchFromSourcehut {
owner = "~martijnbraam";
repo = "numberstation";
rev = version;
2022-09-12 08:10:37 +02:00
hash = "sha256-e/KZrBnep5LbzgNnIoZlS5AMxhx4KlmdYDzdldMGVwg=";
2021-05-17 00:16:15 +02:00
};
postPatch = ''
patchShebangs build-aux/meson
'';
nativeBuildInputs = [
desktop-file-utils
glib
gtk3
gobject-introspection
2021-05-17 00:16:15 +02:00
meson
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
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 tomfitzhenry ];
2021-05-17 00:16:15 +02:00
};
}