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

39 lines
693 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";
2021-11-01 20:06:38 +01:00
version = "0.7.2";
2021-06-11 20:43:48 +02:00
src = fetchFromGitHub {
owner = "maaslalani";
repo = "slides";
rev = "v${version}";
2021-11-01 20:06:38 +01:00
sha256 = "02zdgn0pnjqharvmn9rww45yrja8dzww64s3fryxx4pm8g5km9nf";
2021-06-11 20:43:48 +02:00
};
checkInputs = [
bash
go
];
2021-11-01 20:06:38 +01:00
vendorSha256 = "06vb5xnss6ibgbsny6cadphfkzw8z3np5qgn3hp2wpf3hxgcnnvs";
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 ];
};
}