Merge pull request #152447 from Cogitri/bada-bib

bada-bib: init at 0.3.0
This commit is contained in:
markuskowa 2022-02-01 22:26:26 +01:00 committed by GitHub
commit 65bc2de0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 87 additions and 0 deletions

View file

@ -2303,6 +2303,13 @@
githubId = 5561189;
name = "Cody Opel";
};
Cogitri = {
email = "oss@cogitri.dev";
github = "Cogitri";
githubId = 8766773;
matrix = "@cogitri:cogitri.dev";
name = "Rasmus Thomsen";
};
cohei = {
email = "a.d.xvii.kal.mai@gmail.com";
github = "cohei";

View file

@ -0,0 +1,78 @@
{ lib
, meson
, ninja
, fetchFromGitHub
, appstream-glib
, desktop-file-utils
, gdk-pixbuf
, gettext
, glib
, gnome
, gobject-introspection
, gtk3
, libxml2
, pkg-config
, python3Packages
, wrapGAppsHook }:
python3Packages.buildPythonApplication rec {
pname = "bada-bib";
version = "0.3.0";
format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitHub {
owner = "RogerCrocker";
repo = "BadaBib";
rev = "v${version}";
sha256 = "0rclkkf5kd9ab049lizliiqawx5c5y2qmq40lkxnx09sa0283vg8";
};
nativeBuildInputs = [
gettext
gobject-introspection
libxml2
meson
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
gdk-pixbuf
glib
gtk3
];
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;
};
}

View file

@ -208,6 +208,8 @@ with pkgs;
bacnet-stack = callPackage ../tools/networking/bacnet-stack {};
bada-bib = callPackage ../applications/science/misc/bada-bib {};
bakelite = callPackage ../tools/backup/bakelite { };
beyond-identity = callPackage ../tools/security/beyond-identity {};