From 64a2421703149e007ab672de27c43a1c40c8e993 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 29 Apr 2024 22:21:01 +0200 Subject: [PATCH] openasar: add update script --- pkgs/by-name/op/openasar/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/op/openasar/package.nix b/pkgs/by-name/op/openasar/package.nix index dbb05162f12a..444ffa39da91 100644 --- a/pkgs/by-name/op/openasar/package.nix +++ b/pkgs/by-name/op/openasar/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, nodejs, bash, asar, unzip }: +{ lib, stdenv, fetchFromGitHub, unstableGitUpdater, nodejs, bash, asar, unzip }: stdenv.mkDerivation rec { pname = "openasar"; @@ -40,6 +40,11 @@ stdenv.mkDerivation rec { doCheck = false; + passthru.updateScript = unstableGitUpdater { + # Only has a "nightly" tag (untaged version 0.2 is latest) see https://github.com/GooseMod/OpenAsar/commit/8f79dcef9b1f7732421235a392f06e5bd7382659 + hardcodeZeroVersion = true; + }; + meta = with lib; { description = "Open-source alternative of Discord desktop's \"app.asar\"."; homepage = "https://openasar.dev";