snicat: 0.0.1 -> 0.0.1-unstable-2024-09-05

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>

+12 -16
+12 -16
pkgs/by-name/sn/snicat/package.nix
··· 1 - { lib 2 - , buildGoModule 3 - , fetchFromGitHub 4 - , fetchpatch 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 5 }: 6 + 6 7 buildGoModule rec { 7 8 pname = "snicat"; 8 - version = "0.0.1"; 9 + version = "0.0.1-unstable-2024-09-05"; 9 10 10 11 src = fetchFromGitHub { 11 12 owner = "CTFd"; 12 13 repo = "snicat"; 13 - rev = version; 14 - hash = "sha256-fFlTBOz127le2Y7F9KKhbcldcyFEpAU5QiJ4VCAPs9Y="; 14 + rev = "8c8f06e59d5aedb9a97115a4e0eafa75b17a6cdf"; 15 + hash = "sha256-71wVth+VzEnGW8ErWmj6XjhNtVpx/q8lViIA71njwqU="; 15 16 }; 16 17 17 - patches = [ 18 - # Migrate to Go modules 19 - (fetchpatch { 20 - url = "https://github.com/CTFd/snicat/commit/098a5ce3141bae5d2e188338d78517d710d10f70.patch"; 21 - hash = "sha256-pIdXViUz14nkvL1H3u3oFkm308XA2POtKIGZOKDO6p8="; 22 - }) 23 - ]; 24 - 25 18 vendorHash = "sha256-27ykI9HK1jFanxwa6QrN6ZS548JbFNSZHaXr4ciCVOE="; 26 19 proxyVendor = true; 27 20 28 - ldflags = [ "-s" "-X main.version=v${version}" ]; 21 + ldflags = [ 22 + "-s" 23 + "-X main.version=v${version}" 24 + ]; 29 25 30 26 postInstall = '' 31 27 mv $out/bin/snicat $out/bin/sc