From 81fc1c283d7b20077a0df86dc4e01b580bef451a Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:53:51 +0200 Subject: [PATCH] snicat: 0.0.1 -> 0.0.1-unstable-2024-09-05 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/sn/snicat/package.nix | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/sn/snicat/package.nix b/pkgs/by-name/sn/snicat/package.nix index d38a45f59389..38316a5dcfc7 100644 --- a/pkgs/by-name/sn/snicat/package.nix +++ b/pkgs/by-name/sn/snicat/package.nix @@ -1,31 +1,27 @@ -{ lib -, buildGoModule -, fetchFromGitHub -, fetchpatch +{ + lib, + buildGoModule, + fetchFromGitHub, }: + buildGoModule rec { pname = "snicat"; - version = "0.0.1"; + version = "0.0.1-unstable-2024-09-05"; src = fetchFromGitHub { owner = "CTFd"; repo = "snicat"; - rev = version; - hash = "sha256-fFlTBOz127le2Y7F9KKhbcldcyFEpAU5QiJ4VCAPs9Y="; + rev = "8c8f06e59d5aedb9a97115a4e0eafa75b17a6cdf"; + hash = "sha256-71wVth+VzEnGW8ErWmj6XjhNtVpx/q8lViIA71njwqU="; }; - patches = [ - # Migrate to Go modules - (fetchpatch { - url = "https://github.com/CTFd/snicat/commit/098a5ce3141bae5d2e188338d78517d710d10f70.patch"; - hash = "sha256-pIdXViUz14nkvL1H3u3oFkm308XA2POtKIGZOKDO6p8="; - }) - ]; - vendorHash = "sha256-27ykI9HK1jFanxwa6QrN6ZS548JbFNSZHaXr4ciCVOE="; proxyVendor = true; - ldflags = [ "-s" "-X main.version=v${version}" ]; + ldflags = [ + "-s" + "-X main.version=v${version}" + ]; postInstall = '' mv $out/bin/snicat $out/bin/sc