Merge pull request #258420 from auroraanna/kaufkauflist

kaufkauflist: 2.2.0 → 3.0.0
This commit is contained in:
Fabián Heredia Montiel 2023-10-03 16:14:05 -06:00 committed by GitHub
commit aeff3c1cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,39 @@
{ lib, buildPackages, buildGoModule, fetchFromGitHub, esbuild, buildNpmPackage, fetchFromGitea }:
{ lib
, buildPackages
, fetchFromGitHub
, buildNpmPackage
, fetchFromGitea
, nix-update-script
}:
let
esbuild' = buildPackages.esbuild.override {
buildGoModule = args: buildPackages.buildGoModule (args // rec {
version = "0.17.19";
version = "0.18.20";
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
hash = "sha256-PLC7OJLSOiDq4OjvrdfCawZPfbfuZix4Waopzrj8qsU=";
hash = "sha256-mED3h+mY+4H465m02ewFK/BgA1i/PQ+ksUNxBlgpUoI=";
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
});
};
in buildNpmPackage rec {
pname = "kaufkauflist";
version = "2.2.0";
version = "3.0.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "kaufkauflist";
rev = "v${version}";
hash = "sha256-a7C4yHTHPhL5/p1/XsrMA0PnbIzer6FShDiwUMOg69Y=";
hash = "sha256-W/FlHLZYYG/s9NdAqm0OJHlpTZtEG4iaegc4iOnAwWk=";
};
npmDepsHash = "sha256-uQ4XoaR3JjvPm8EQ2pnDM+x4zjVn4PEHq7BRqVbvFyw=";
npmDepsHash = "sha256-d1mvC72ugmKLNStoemUr8ISCUYjyo9EDWdWUCD1FMiM=";
ESBUILD_BINARY_PATH = "${lib.getExe esbuild'}";
ESBUILD_BINARY_PATH = lib.getExe esbuild';
postInstall = ''
mkdir -p $out/share/kaufkauflist $out/share/pocketbase
@ -35,8 +41,7 @@ in buildNpmPackage rec {
cp -v pb_schema.json $out/share/pocketbase/
'';
# Uncomment this when nix-update-script supports Gitea.
#passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://codeberg.org/annaaurora/kaufkauflist";