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

39 lines
693 B
Nix
Raw Normal View History

2021-10-22 17:50:58 +00:00
{ lib
, bash
, buildGoModule
, fetchFromGitHub
, go
}:
2021-06-11 18:43:48 +00:00
buildGoModule rec {
pname = "slides";
2021-11-01 19:06:38 +00:00
version = "0.7.2";
2021-06-11 18:43:48 +00:00
src = fetchFromGitHub {
owner = "maaslalani";
repo = "slides";
rev = "v${version}";
2021-11-01 19:06:38 +00:00
sha256 = "02zdgn0pnjqharvmn9rww45yrja8dzww64s3fryxx4pm8g5km9nf";
2021-06-11 18:43:48 +00:00
};
checkInputs = [
bash
go
];
2021-11-01 19:06:38 +00:00
vendorSha256 = "06vb5xnss6ibgbsny6cadphfkzw8z3np5qgn3hp2wpf3hxgcnnvs";
2021-06-11 18:43:48 +00:00
ldflags = [
2021-10-23 18:50:55 +00:00
"-s"
"-w"
2021-06-11 18:43:48 +00: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 ];
};
}