nixpkgs/pkgs/applications/misc/slides/default.nix

39 lines
691 B
Nix
Raw Normal View History

2021-10-22 19:50:58 +02:00
{ lib
, bash
, buildGoModule
, fetchFromGitHub
, go
}:
2021-06-11 20:43:48 +02:00
buildGoModule rec {
pname = "slides";
2022-02-16 22:02:55 +01:00
version = "0.7.3";
2021-06-11 20:43:48 +02:00
src = fetchFromGitHub {
owner = "maaslalani";
repo = "slides";
rev = "v${version}";
2022-02-16 22:02:55 +01:00
sha256 = "sha256-05geDWZSpFjLywuWkI+FPaTaO9dyNuPuMBk7dc1Yl6I=";
2021-06-11 20:43:48 +02:00
};
checkInputs = [
bash
go
];
2022-02-16 22:02:55 +01:00
vendorSha256 = "sha256-i+bbSwiH7TD+huxpTREThxnPkQZTMQJO7AP4kTlCseo=";
2021-06-11 20:43:48 +02:00
ldflags = [
2021-10-23 20:50:55 +02:00
"-s"
"-w"
2021-06-11 20:43:48 +02:00
"-X=main.Version=${version}"
];
meta = with lib; {
description = "Terminal based presentation tool";
homepage = "https://github.com/maaslalani/slides";
license = licenses.mit;
maintainers = with maintainers; [ maaslalani ];
};
}