Merge pull request #328489 from xanderio/outline-0.78.0

outline: 0.77.2 -> 0.78.0 and set updateScript
This commit is contained in:
Leona Maroni
2024-07-22 10:35:48 +02:00
committed by GitHub
+11 -5
View File
@@ -3,6 +3,7 @@
, fetchFromGitHub
, fetchYarnDeps
, makeWrapper
, nix-update-script
, prefetch-yarn-deps
, fixup-yarn-lock
, nodejs
@@ -12,13 +13,13 @@
stdenv.mkDerivation rec {
pname = "outline";
version = "0.77.2";
version = "0.78.0";
src = fetchFromGitHub {
owner = "outline";
repo = "outline";
rev = "v${version}";
hash = "sha256-Ri2qN7nR79Y1tsUsga/92nS7EuP/nqaUG2FiYJQNAr4=";
hash = "sha256-I0ngEJfHWywJSYOloJbtuKzu95yJibo7hLFgkyT2Wz8=";
};
nativeBuildInputs = [ makeWrapper prefetch-yarn-deps fixup-yarn-lock ];
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-wxXnvi58mBfAQiMSxhXWK7sYLvr8nfQ+u6kMYnRWI3s=";
hash = "sha256-TKAV49VJmR/SWTd2T2vHMnYq2j9fwimzYq1CCfRXk0Q=";
};
configurePhase = ''
@@ -70,8 +71,13 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru.tests = {
basic-functionality = nixosTests.outline;
passthru = {
tests = {
basic-functionality = nixosTests.outline;
};
updateScript = nix-update-script { };
# alias for nix-update to be able to find and update this attribute
offlineCache = yarnOfflineCache;
};
meta = with lib; {