mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
paperlib: refactor
This commit is contained in:
parent
fd527aacc0
commit
8fdfc49bfc
1 changed files with 5 additions and 3 deletions
|
@ -20,14 +20,14 @@ let
|
||||||
hash = "sha256-2xbn9UWlcf37n9jZdZKyyevzsag6SW9YuQH/bYCRmLQ=";
|
hash = "sha256-2xbn9UWlcf37n9jZdZKyyevzsag6SW9YuQH/bYCRmLQ=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
|
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/Future-Scholars/paperlib?";
|
homepage = "https://github.com/Future-Scholars/paperlib";
|
||||||
description = "Open-source academic paper management tool";
|
description = "Open-source academic paper management tool";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = with lib.maintainers; [ ByteSudoer ];
|
maintainers = with lib.maintainers; [ ByteSudoer ];
|
||||||
|
@ -55,8 +55,10 @@ if stdenv.hostPlatform.isDarwin then
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p "$out/Applications"
|
|
||||||
|
mkdir -p $out/Applications
|
||||||
mv Paperlib.app $out/Applications/
|
mv Paperlib.app $out/Applications/
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue