2021-12-28 11:25:50 +00:00
|
|
|
{ lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gnome
|
|
|
|
, gobject-introspection
|
2022-02-18 10:15:42 +00:00
|
|
|
, gtk4
|
2021-12-28 11:25:50 +00:00
|
|
|
, libxml2
|
|
|
|
, pkg-config
|
|
|
|
, python3Packages
|
2022-02-18 10:15:42 +00:00
|
|
|
, wrapGAppsHook4 }:
|
2021-12-28 11:25:50 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "bada-bib";
|
2022-02-18 10:15:42 +00:00
|
|
|
version = "0.5.1";
|
2021-12-28 11:25:50 +00:00
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RogerCrocker";
|
|
|
|
repo = "BadaBib";
|
|
|
|
rev = "v${version}";
|
2022-02-18 10:15:42 +00:00
|
|
|
sha256 = "sha256-tb/720WPqcO4w1EMmidjtEidsjZ0dEhe+/vnJPM6kxo=";
|
2021-12-28 11:25:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-02-18 10:15:42 +00:00
|
|
|
wrapGAppsHook4
|
2021-12-28 11:25:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
2022-02-18 10:15:42 +00:00
|
|
|
gtk4
|
2021-12-28 11:25:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
bibtexparser
|
|
|
|
pygobject3
|
|
|
|
watchgod
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapGApps = true; # Needs python wrapper
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/libexec" "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/RogerCrocker/BadaBib";
|
|
|
|
description = "A simple BibTeX Viewer and Editor";
|
|
|
|
maintainers = [ maintainers.Cogitri ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|