mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
wordbook: init at unstable-2022-11-02
This commit is contained in:
parent
195f48cb78
commit
242949ca5f
69
pkgs/applications/misc/wordbook/default.nix
Normal file
69
pkgs/applications/misc/wordbook/default.nix
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, glib
|
||||||
|
, gtk4
|
||||||
|
, libadwaita
|
||||||
|
, librsvg
|
||||||
|
, espeak-ng
|
||||||
|
, gobject-introspection
|
||||||
|
, wrapGAppsHook4
|
||||||
|
, appstream-glib
|
||||||
|
, desktop-file-utils
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "wordbook";
|
||||||
|
version = "unstable-2022-11-02";
|
||||||
|
format = "other";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fushinari";
|
||||||
|
repo = "Wordbook";
|
||||||
|
rev = "2d79e9e9ef21ba4b54d0b46c764a1481a06f0f1b";
|
||||||
|
hash = "sha256-ktusZEQ7m8P0kiH09r3XC6q9bQCWVCn543IMLKmULDo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook4
|
||||||
|
appstream-glib
|
||||||
|
desktop-file-utils
|
||||||
|
gobject-introspection
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
gtk4
|
||||||
|
librsvg
|
||||||
|
libadwaita
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
pygobject3
|
||||||
|
wn
|
||||||
|
];
|
||||||
|
|
||||||
|
# prevent double wrapping
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
makeWrapperArgs+=(
|
||||||
|
--prefix PATH ":" "${lib.makeBinPath [ espeak-ng ]}"
|
||||||
|
"''${gappsWrapperArgs[@]}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Offline English-English dictionary application built for GNOME";
|
||||||
|
homepage = "https://github.com/fushinari/Wordbook";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ zendo ];
|
||||||
|
};
|
||||||
|
}
|
@ -32344,6 +32344,8 @@ with pkgs;
|
|||||||
|
|
||||||
cl-wordle = callPackage ../games/cl-wordle { };
|
cl-wordle = callPackage ../games/cl-wordle { };
|
||||||
|
|
||||||
|
wordbook = callPackage ../applications/misc/wordbook { };
|
||||||
|
|
||||||
wordnet = callPackage ../applications/misc/wordnet {
|
wordnet = callPackage ../applications/misc/wordnet {
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user