2022-06-16 17:23:12 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitea }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "seehecht";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.0.3";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
2022-08-12 12:06:08 +00:00
|
|
|
owner = "annaaurora";
|
2022-06-16 17:23:12 +00:00
|
|
|
repo = "seehecht";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-KIxK0JYfq/1Bn4LOn+LzWPBUvGYMvOEuqS7GMpDRvW0=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-AeVUVF4SBS9FG0iezLBKUm4Uk1PPRXPTON93evgL9IA=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/seh $out/bin/seehecht
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to quickly open a markdown document with already filled out frontmatter";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
platforms = platforms.all;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ annaaurora ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|