mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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:
parent
2399c29555
commit
81fc1c283d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user