2024-06-30 11:07:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests, installShellFiles, stdenv }:
|
2019-09-22 14:15:06 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "shiori";
|
2024-10-06 02:50:27 +00:00
|
|
|
version = "1.7.1";
|
2019-09-22 14:15:06 +00:00
|
|
|
|
2024-04-27 02:16:54 +00:00
|
|
|
vendorHash = "sha256-fakRqgoEcdzw9WZuubaxfGfvVrMvb8gV/IwPikMnfRQ=";
|
2019-09-22 14:15:06 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-22 14:15:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-shiori";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-10-06 02:50:27 +00:00
|
|
|
sha256 = "sha256-gMIpDiA5ncZ50WZ2Y57mScTEXzeObgZxP+nkWe+a8Eo=";
|
2019-09-22 14:15:06 +00:00
|
|
|
};
|
|
|
|
|
2024-04-27 02:16:54 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2024-06-30 11:07:50 +00:00
|
|
|
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
2024-04-27 02:16:54 +00:00
|
|
|
installShellCompletion --cmd shiori \
|
|
|
|
--bash <($out/bin/shiori completion bash) \
|
|
|
|
--fish <($out/bin/shiori completion fish) \
|
|
|
|
--zsh <($out/bin/shiori completion zsh)
|
|
|
|
'';
|
|
|
|
|
2024-06-30 10:56:47 +00:00
|
|
|
passthru.tests.smoke-test = nixosTests.shiori;
|
2022-02-27 06:38:55 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-22 14:15:06 +00:00
|
|
|
description = "Simple bookmark manager built with Go";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "shiori";
|
2019-09-22 14:15:06 +00:00
|
|
|
homepage = "https://github.com/go-shiori/shiori";
|
|
|
|
license = licenses.mit;
|
2024-04-27 02:16:54 +00:00
|
|
|
maintainers = with maintainers; [ minijackson CaptainJawZ ];
|
2019-09-22 14:15:06 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|