3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/slides/default.nix

39 lines
691 B
Nix
Raw Normal View History

2021-10-22 18:50:58 +01:00
{ lib
, bash
, buildGoModule
, fetchFromGitHub
, go
}:
2021-06-11 19:43:48 +01:00
buildGoModule rec {
pname = "slides";
2021-10-23 19:50:55 +01:00
version = "0.6.2";
2021-06-11 19:43:48 +01:00
src = fetchFromGitHub {
owner = "maaslalani";
repo = "slides";
rev = "v${version}";
2021-10-23 19:50:55 +01:00
sha256 = "sha256-D2ex9/XN5JMKwn+g1cB77UMquYW9NdTzhCCvVtTOBfU=";
2021-06-11 19:43:48 +01:00
};
checkInputs = [
bash
go
];
2021-10-22 18:50:58 +01:00
vendorSha256 = "sha256-pI5/1LJVP/ZH64Dy2rUoOXM21oqJ8KA0/L8ClGRb5UY=";
2021-06-11 19:43:48 +01:00
ldflags = [
2021-10-23 19:50:55 +01:00
"-s"
"-w"
2021-06-11 19:43:48 +01: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 ];
};
}