nixpkgs/pkgs/tools/text/shocco/default.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

30 lines
793 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 = "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 ];
};
}