nixpkgs/pkgs/by-name/bk/bk/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

39 lines
850 B
Nix

{ fetchCrate
, go-md2man
, installShellFiles
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "bk";
version = "0.6.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-rSMvx/zUZqRRgj48TVVG7RwQT8e70m0kertRJysDY4Y=";
};
cargoHash = "sha256-pE5loMwNMdHL3GODiw3kVVHj374hf3+vIDEYTqvx5WI=";
nativeBuildInputs = [ go-md2man installShellFiles ];
postBuild = ''
sed -i '$ a # Source and further info' README.md
sed -i '$ a https://github.com/aeosynth/bk' README.md
go-md2man -in README.md -out bk.1
'';
postInstall = ''
installManPage bk.?
'';
meta = with lib; {
homepage = "https://github.com/aeosynth/bk";
description = "Terminal epub reader written in rust";
license = licenses.mit;
maintainers = with maintainers; [ vuimuich ];
mainProgram = "bk";
};
}