nixpkgs/pkgs/tools/text/shocco/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
795 B
Nix

{ lib, stdenv, fetchFromGitHub, perlPackages, python3 }:
stdenv.mkDerivation rec {
pname = "shocco";
version = "1.0";
src = fetchFromGitHub {
owner = "rtomayko";
repo = "shocco";
rev = version;
sha256 = "1nkwcw9fqf4vyrwidqi6by7nrmainkjqkirkz3yxmzk6kzwr38mi";
};
prePatch = ''
# Don't change $PATH
substituteInPlace configure --replace PATH= NIRVANA=
'';
buildInputs = [ perlPackages.TextMarkdown python3.pkgs.pygments ];
meta = with lib; {
description = "A quick-and-dirty, literate-programming-style documentation generator for / in POSIX shell";
mainProgram = "shocco";
homepage = "https://rtomayko.github.io/shocco/";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ dotlambda ];
};
}