nixpkgs/pkgs/applications/misc/kaufkauflist/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPackages
, fetchFromGitHub
, buildNpmPackage
, fetchFromGitea
, nix-update-script
}:
2022-12-28 23:06:44 +01:00
let
esbuild' = buildPackages.esbuild.override {
buildGoModule = args: buildPackages.buildGoModule (args // rec {
2024-01-05 14:39:12 +01:00
version = "0.19.11";
2022-12-28 23:06:44 +01:00
src = fetchFromGitHub {
owner = "evanw";
repo = "esbuild";
rev = "v${version}";
2024-01-05 14:39:12 +01:00
hash = "sha256-NUwjzOpHA0Ijuh0E69KXx8YVS5GTnKmob9HepqugbIU=";
2022-12-28 23:06:44 +01:00
};
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
});
};
in buildNpmPackage rec {
pname = "kaufkauflist";
2024-01-05 14:39:12 +01:00
version = "3.3.0";
2022-12-28 23:06:44 +01:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "kaufkauflist";
rev = "v${version}";
2024-01-05 14:39:12 +01:00
hash = "sha256-kqDNA+BALVMrPZleyPxxCyls4VKBzY2MttzO51+Ixo8=";
2022-12-28 23:06:44 +01:00
};
2024-01-05 14:39:12 +01:00
npmDepsHash = "sha256-O2fcmC7Hj9JLStMukyt12aMgntjXT7Lv3vYJp3GqO24=";
2022-12-28 23:06:44 +01:00
ESBUILD_BINARY_PATH = lib.getExe esbuild';
2022-12-28 23:06:44 +01:00
2023-05-14 21:34:10 +02:00
postInstall = ''
2022-12-28 23:06:44 +01:00
mkdir -p $out/share/kaufkauflist $out/share/pocketbase
cp -vr build/* $out/share/kaufkauflist/
cp -v pb_schema.json $out/share/pocketbase/
'';
passthru.updateScript = nix-update-script { };
2022-12-28 23:06:44 +01:00
meta = with lib; {
homepage = "https://codeberg.org/annaaurora/kaufkauflist";
description = "A to-do list for shopping or other use cases";
license = licenses.mit;
maintainers = with maintainers; [ annaaurora ];
2024-02-11 03:19:15 +01:00
mainProgram = "kaufdbclean";
2022-12-28 23:06:44 +01:00
};
}