nixpkgs/pkgs/tools/text/shocco/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
767 B
Nix
Raw Normal View History

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