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";
|
2022-04-15 19:56:13 +01:00
|
|
|
version = "0.8.0";
|
2021-06-11 19:43:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maaslalani";
|
|
|
|
repo = "slides";
|
|
|
|
rev = "v${version}";
|
2022-04-15 19:56:13 +01:00
|
|
|
sha256 = "sha256-Ca0/M4B6yAdV4hbJ95gH9MVZg3EFIY5bSMkkYy2+P+Q=";
|
2021-06-11 19:43:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
bash
|
|
|
|
go
|
|
|
|
];
|
|
|
|
|
2022-04-15 19:56:13 +01:00
|
|
|
vendorSha256 = "sha256-pn7c/6RF/GpECQtaxsTau91T7pLg+ZAUBbnR7h8DfnY=";
|
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";
|
2022-04-15 19:56:13 +01:00
|
|
|
changelog = "https://github.com/maaslalani/slides/releases/tag/v${version}";
|
2021-06-11 19:43:48 +01:00
|
|
|
license = licenses.mit;
|
2022-04-15 19:56:13 +01:00
|
|
|
maintainers = with maintainers; [ maaslalani penguwin ];
|
2021-06-11 19:43:48 +01:00
|
|
|
};
|
|
|
|
}
|