bk: init at 0.6.0
add `mainProgram` move package to `pkgs/by-name`
This commit is contained in:
parent
afaf639666
commit
aefffb674c
38
pkgs/by-name/bk/bk/package.nix
Normal file
38
pkgs/by-name/bk/bk/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ 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 = "A terminal epub reader written in rust";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ vuimuich ];
|
||||
mainProgram = "bk";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user