nixpkgs/pkgs/by-name/sh/shiori/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

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
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)
'';
passthru.tests.smoke-test = nixosTests.shiori;
meta = with lib; {
2019-09-22 14:15:06 +00:00
description = "Simple bookmark manager built with Go";
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
};
}