nixpkgs/pkgs/applications/misc/genxword/default.nix

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

55 lines
969 B
Nix
Raw Normal View History

2020-05-11 14:14:34 +02:00
{ lib
, python3
, fetchFromGitHub
, gettext
, gobject-introspection
, wrapGAppsHook
, pango
, gtksourceview3
}:
python3.pkgs.buildPythonApplication rec {
pname = "genxword";
2021-01-23 18:14:15 +01:00
version = "2.1.0";
2020-05-11 14:14:34 +02:00
src = fetchFromGitHub {
owner = "riverrun";
repo = pname;
rev = "v${version}";
2021-01-23 18:14:15 +01:00
sha256 = "17h8saja45bv612yk0pra9ncbp2mjnx5n10q25nqhl765ks4bmb5";
2020-05-11 14:14:34 +02:00
};
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook
];
buildInputs = [
gobject-introspection
pango
gtksourceview3
];
propagatedBuildInputs = with python3.pkgs; [
pycairo
pygobject3
];
# to prevent double wrapping
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
# there are no tests
doCheck = false;
meta = with lib; {
inherit (src.meta) homepage;
description = "Crossword generator";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}