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";
|
2022-09-16 03:53:23 +00:00
|
|
|
version = "0.9.0";
|
2021-06-11 18:43:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maaslalani";
|
|
|
|
repo = "slides";
|
|
|
|
rev = "v${version}";
|
2022-09-16 03:53:23 +00:00
|
|
|
sha256 = "sha256-K8VsqaNUPxh3/Yddy6DFiOyjRuZ6r6bU456Pm31A1og=";
|
2021-06-11 18:43:48 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-11 18:43:48 +00:00
|
|
|
bash
|
|
|
|
go
|
|
|
|
];
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-c3YCf22L5+rTmH5ePeJ0/goRj5rKY6v+Zon3183MhMY=";
|
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";
|
2022-04-15 18:56:13 +00:00
|
|
|
changelog = "https://github.com/maaslalani/slides/releases/tag/v${version}";
|
2021-06-11 18:43:48 +00:00
|
|
|
license = licenses.mit;
|
2022-04-15 18:56:13 +00:00
|
|
|
maintainers = with maintainers; [ maaslalani penguwin ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "slides";
|
2021-06-11 18:43:48 +00:00
|
|
|
};
|
|
|
|
}
|