Files
nixpkgs/pkgs/by-name/ic/icebreaker/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1014 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
makeBinaryWrapper,
}:
buildGoModule {
pname = "icebreaker";
version = "0-unstable-2023-08-13";
src = fetchFromGitHub {
owner = "jonhoo";
repo = "icebreaker";
rev = "71fe0679fcf82ccf458b47585cda09f3ef213155";
hash = "sha256-d8x4Q4ZT0qrKWEIRbYVOUjhnkJWOgY0ct/+cjaSh7SU=";
};
proxyVendor = true;
vendorHash = "sha256-A0jNy8cUKpfAqocgjdYU7LB4EgIr9tiOCyEaXGQl8TM=";
nativeBuildInputs = [
makeBinaryWrapper
];
ldflags = [
"-s"
"-w"
];
postInstall = ''
mkdir -p $out/share
cp -r static templates $out/share
wrapProgram $out/bin/icebreaker \
--chdir $out/share \
--set-default GIN_MODE release
'';
meta = with lib; {
description = "Web app that allows students to ask real-time, anonymous questions during class";
homepage = "https://github.com/jonhoo/icebreaker";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "icebreaker";
};
}