nixpkgs/pkgs/applications/science/misc/bada-bib/default.nix

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

82 lines
1.4 KiB
Nix
Raw Normal View History

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
, gtksourceview5
, libadwaita
2021-12-28 11:25:50 +00:00
, libxml2
, pkg-config
, python3Packages
, wrapGAppsHook4
}:
2021-12-28 11:25:50 +00:00
python3Packages.buildPythonApplication rec {
pname = "bada-bib";
2022-09-08 04:44:53 +00:00
version = "0.8.0";
2021-12-28 11:25:50 +00:00
format = "other";
src = fetchFromGitHub {
owner = "RogerCrocker";
repo = "BadaBib";
2022-04-19 00:53:01 +00:00
rev = "refs/tags/v${version}";
2022-09-08 04:44:53 +00:00
sha256 = "sha256-mdAoJh3qOwtPX8cMCYw7MDDNy10GdhynnS8gtszJROI=";
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
gtksourceview5
libadwaita
2021-12-28 11:25:50 +00:00
];
nativeCheckInputs = [
2021-12-28 11:25:50 +00:00
appstream-glib
desktop-file-utils
];
pythonPath = with python3Packages; [
bibtexparser
pygobject3
];
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;
};
}