nixpkgs/pkgs/tools/text/markscribe/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
749 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "markscribe";
version = "0.6.0";
src = fetchFromGitHub {
owner = "muesli";
repo = "markscribe";
rev = "v${version}";
hash = "sha256-I8WSG9rMqgf2QADQetlYTSUIQH1Iv8cMVw/3uIwEDPc=";
};
vendorHash = "sha256-leeP2+W+bnYASls3k0l4jpz1rc1mAkMWUfrY2uBUUdQ=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Your personal markdown scribe with template-engine and Git(Hub) & RSS powers";
mainProgram = "markscribe";
homepage = "https://github.com/muesli/markscribe";
changelog = "https://github.com/muesli/markscribe/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}