depot/third_party/nixpkgs/pkgs/servers/icebreaker/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

43 lines
996 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, makeBinaryWrapper
}:
buildGoModule {
pname = "icebreaker";
version = "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";
};
}