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

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-09-05 16:53:51 +02:00
parent 2399c29555
commit 81fc1c283d

View File

@ -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