org-zotero-export
All checks were successful
CI / Build Packages (default) (push) Successful in 46s
CI / Build Packages (example-a) (push) Successful in 47s
CI / Nix Flake Check (push) Successful in 1m51s
CI / Build Packages (example-b) (push) Successful in 46s
CI / Build Packages (pyzotero) (push) Successful in 51s
CI / Build Packages (pyzotero-cli) (push) Successful in 54s
All checks were successful
CI / Build Packages (default) (push) Successful in 46s
CI / Build Packages (example-a) (push) Successful in 47s
CI / Nix Flake Check (push) Successful in 1m51s
CI / Build Packages (example-b) (push) Successful in 46s
CI / Build Packages (pyzotero) (push) Successful in 51s
CI / Build Packages (pyzotero-cli) (push) Successful in 54s
This commit is contained in:
36
pkgs/org-zotero-export/default.nix
Normal file
36
pkgs/org-zotero-export/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python3,
|
||||
pandoc,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "org-zotero-export";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
substitute ${./org-zotero-export.py} $out/bin/org-zotero-export \
|
||||
--replace-fail "#!/usr/bin/env python3" "#!${python3}/bin/python3"
|
||||
chmod +x $out/bin/org-zotero-export
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/org-zotero-export \
|
||||
--prefix PATH : ${lib.makeBinPath [ pandoc ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Export Org-mode files to HTML with Zotero Better BibTeX citation links";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user