workout-tracker: 2.4.1 → 2.5.1 (#477510)

This commit is contained in:
isabel
2026-01-07 13:24:00 +00:00
committed by GitHub
+9 -8
View File
@@ -8,27 +8,26 @@
}:
let
pname = "workout-tracker";
version = "2.4.1";
version = "2.5.1";
src = fetchFromGitHub {
owner = "jovandeginste";
repo = "workout-tracker";
tag = "v${version}";
hash = "sha256-MS4+dbJUh+oHWcQKe84VWW2e3hbZM4dgDWl6ZkFQkDo=";
hash = "sha256-S7rKa79w5Lqv8QBKNc8Zp35GOOBN4JnoNE7FNWsCzoY=";
};
assets = buildNpmPackage {
pname = "${pname}-assets";
inherit version src;
npmDepsHash = "sha256-kzHISDTACtqTJWyjMaXb5HtuM1oaBaSscDZl9EOuRV8=";
dontNpmBuild = true;
npmDepsHash = "sha256-vSFwCB5qbiHLiK0ns6YUj8yr3FjeNCqT8yvLRQzZycI=";
makeCacheWritable = true;
postPatch = ''
rm Makefile
cd frontend
'';
installPhase = ''
runHook preInstall
cp -r . "$out"
cp -r ../assets "$out"
runHook postInstall
'';
};
@@ -39,8 +38,8 @@ buildGoModule {
vendorHash = null;
postPatch = ''
ln -s ${assets}/node_modules ./node_modules
make build-dist
rm -r assets
ln -s ${assets} ./assets
'';
ldflags = [
@@ -52,6 +51,8 @@ buildGoModule {
"-X main.gitRefName=v${version}"
];
__darwinAllowLocalNetworking = true;
passthru.updateScript = nix-update-script { };
passthru.tests = {