33 lines
590 B
Nix
33 lines
590 B
Nix
{
|
|
pname,
|
|
version,
|
|
meta,
|
|
stdenv,
|
|
fetchurl,
|
|
undmg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit pname version meta;
|
|
|
|
src = fetchurl {
|
|
url = "https://download.zotero.org/client/release/${version}/Zotero-${version}.dmg";
|
|
hash = "sha256-JP9zRPsEDICw6Q7VHRd7IB0J9+v0qU7QuLf7eTPafBo=";
|
|
};
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontFixup = true; # breaks notarization
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
cp -r Zotero.app $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|