mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromSourcehut
|
|
, desktop-file-utils
|
|
, glib
|
|
, gobject-introspection
|
|
, gtk3
|
|
, libhandy
|
|
, librsvg
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "numberstation";
|
|
version = "1.4.0";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~martijnbraam";
|
|
repo = "numberstation";
|
|
rev = version;
|
|
hash = "sha256-0T/Dc2i6auuZiWjcPR72JT8yOrzmdEmbW2PS5YhmEwI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs build-aux/meson
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
glib
|
|
gtk3
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
libhandy
|
|
librsvg
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
keyring
|
|
pygobject3
|
|
pyotp
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://git.sr.ht/~martijnbraam/numberstation/refs/${version}";
|
|
description = "TOTP Authentication application for mobile";
|
|
mainProgram = "numberstation";
|
|
homepage = "https://sr.ht/~martijnbraam/numberstation/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|