Add zotero 4.0.19 (close #2043)
@vcunat simplied the expression a little.
This commit is contained in:
parent
9bde84a75d
commit
5554d9c688
41
pkgs/applications/office/zotero/default.nix
Normal file
41
pkgs/applications/office/zotero/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ stdenv, fetchurl, bash, xulrunner }:
|
||||||
|
|
||||||
|
assert (stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux");
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "4.0.19";
|
||||||
|
arch = if stdenv.system == "x86_64-linux"
|
||||||
|
then "linux-x86_64"
|
||||||
|
else "linux-i686";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "zotero-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://download.zotero.org/standalone/${version}/Zotero-${version}_${arch}.tar.bz2";
|
||||||
|
sha256 = if stdenv.system == "x86_64-linux"
|
||||||
|
then "0xihvk7ms1vvzmxvpw8hs15pl1vvmf3zd72nwyaqhg469kwcz9s1"
|
||||||
|
else "1z4q8nzl90snb03ywk0cp64nv3cgasj9fvbcw2d4bgl2zlgwzpy9";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Strip the bundled xulrunner
|
||||||
|
prePatch = ''rm -fr run-zotero.sh zotero xulrunner/'';
|
||||||
|
|
||||||
|
inherit bash xulrunner;
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir "$out/libexec/zotero"
|
||||||
|
cp -vR * "$out/libexec/zotero/"
|
||||||
|
|
||||||
|
ensureDir "$out/bin"
|
||||||
|
substituteAll "${./zotero.sh}" "$out/bin/zotero"
|
||||||
|
chmod +x "$out/bin/zotero"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://www.zotero.org";
|
||||||
|
description = "Collect, organize, cite, and share your research sources";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ttuegel ];
|
||||||
|
};
|
||||||
|
}
|
3
pkgs/applications/office/zotero/zotero.sh
Normal file
3
pkgs/applications/office/zotero/zotero.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!@bash@/bin/bash
|
||||||
|
|
||||||
|
exec "@xulrunner@/bin/xulrunner" "@out@/libexec/zotero/application.ini" "${@}"
|
@ -9453,6 +9453,8 @@ let
|
|||||||
|
|
||||||
zgrviewer = callPackage ../applications/graphics/zgrviewer {};
|
zgrviewer = callPackage ../applications/graphics/zgrviewer {};
|
||||||
|
|
||||||
|
zotero = callPackage ../applications/office/zotero { };
|
||||||
|
|
||||||
zynaddsubfx = callPackage ../applications/audio/zynaddsubfx { };
|
zynaddsubfx = callPackage ../applications/audio/zynaddsubfx { };
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user