From 9682263bc97a952bc446c3373db8014f5fb70762 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 12 Oct 2022 13:53:58 -0600 Subject: [PATCH] yarr: add manifest so it can be 'appified' --- pkgs/yarr.nix | 2 ++ pkgs/yarr_manifest.diff | 49 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 pkgs/yarr_manifest.diff diff --git a/pkgs/yarr.nix b/pkgs/yarr.nix index 3bb6d36..944a357 100644 --- a/pkgs/yarr.nix +++ b/pkgs/yarr.nix @@ -20,6 +20,8 @@ buildGo119Module rec { proxyVendor = true; + patches = [ ./yarr_manifest.diff ]; + doCheck = false; subPackages = [ "./src/main.go" ]; diff --git a/pkgs/yarr_manifest.diff b/pkgs/yarr_manifest.diff new file mode 100644 index 0000000..eee2b22 --- /dev/null +++ b/pkgs/yarr_manifest.diff @@ -0,0 +1,49 @@ +diff --git a/src/assets/assetsfs.go b/src/assets/assetsfs.go +index 29f3a36..0edf300 100644 +--- a/src/assets/assetsfs.go ++++ b/src/assets/assetsfs.go +@@ -1,3 +1,4 @@ ++//go:build release + // +build release + + package assets +@@ -5,6 +6,7 @@ package assets + import "embed" + + //go:embed *.html ++//go:embed *.json + //go:embed graphicarts + //go:embed javascripts + //go:embed stylesheets +diff --git a/src/assets/index.html b/src/assets/index.html +index 2124973..73346b2 100644 +--- a/src/assets/index.html ++++ b/src/assets/index.html +@@ -6,6 +6,7 @@ + + + ++ + +