2021-10-22 18:50:58 +01:00
|
|
|
{ lib
|
|
|
|
, bash
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, go
|
|
|
|
, python3
|
|
|
|
, ruby
|
|
|
|
}:
|
2021-06-11 19:43:48 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "slides";
|
2021-10-22 18:50:58 +01:00
|
|
|
version = "0.6.1";
|
2021-06-11 19:43:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maaslalani";
|
|
|
|
repo = "slides";
|
|
|
|
rev = "v${version}";
|
2021-10-22 18:50:58 +01:00
|
|
|
sha256 = "sha256-530OsO3Rg13nmFYOoouhWvy12Afd25O4We9RBHe1CmE=";
|
2021-06-11 19:43:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
bash
|
|
|
|
go
|
|
|
|
python3
|
|
|
|
ruby
|
|
|
|
];
|
|
|
|
|
2021-10-22 18:50:58 +01:00
|
|
|
vendorSha256 = "sha256-pI5/1LJVP/ZH64Dy2rUoOXM21oqJ8KA0/L8ClGRb5UY=";
|
2021-06-11 19:43:48 +01:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X=main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-10-22 18:50:58 +01:00
|
|
|
# https://github.com/maaslalani/slides/issues/113
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-11 19:43:48 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal based presentation tool";
|
|
|
|
homepage = "https://github.com/maaslalani/slides";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ maaslalani ];
|
|
|
|
};
|
|
|
|
}
|