nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / sl / slides / package.nix
blob0c97ff7f14fa93e111e7a9e71f44eea1d5a4dd15
1 { lib
2 , bash
3 , buildGoModule
4 , fetchFromGitHub
5 , go
6 }:
8 buildGoModule rec {
9   pname = "slides";
10   version = "0.9.0";
12   src = fetchFromGitHub {
13     owner = "maaslalani";
14     repo = "slides";
15     rev = "v${version}";
16     sha256 = "sha256-K8VsqaNUPxh3/Yddy6DFiOyjRuZ6r6bU456Pm31A1og=";
17   };
19   nativeCheckInputs = [
20     bash
21     go
22   ];
24   vendorHash = "sha256-c3YCf22L5+rTmH5ePeJ0/goRj5rKY6v+Zon3183MhMY=";
26   ldflags = [
27     "-s"
28     "-w"
29     "-X=main.Version=${version}"
30   ];
32   meta = with lib; {
33     description = "Terminal based presentation tool";
34     homepage = "https://github.com/maaslalani/slides";
35     changelog = "https://github.com/maaslalani/slides/releases/tag/v${version}";
36     license = licenses.mit;
37     maintainers = with maintainers; [ maaslalani penguwin ];
38     mainProgram = "slides";
39   };