This commit is contained in:
parent
d77cbdc735
commit
1b78a1dc58
5 changed files with 57 additions and 9 deletions
47
nix/mkdocs-terminal.nix
Normal file
47
nix/mkdocs-terminal.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatch-nodejs-version,
|
||||
hatch-requirements-txt,
|
||||
hatchling,
|
||||
jinja2,
|
||||
markdown,
|
||||
mkdocs,
|
||||
pygments,
|
||||
pymdown-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mkdocs-terminal";
|
||||
version = "4.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ntno";
|
||||
repo = "mkdocs-terminal";
|
||||
rev = version;
|
||||
hash = "sha256-Njfv1cBcF/5xW6QdgOvqVjp0JjXDUC0m20YdqYdooHo=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatch-nodejs-version
|
||||
hatch-requirements-txt
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
jinja2
|
||||
markdown
|
||||
mkdocs
|
||||
pygments
|
||||
pymdown-extensions
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Monospace theme for MkDocs";
|
||||
homepage = "https://github.com/ntno/mkdocs-terminal";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
9
nix/shell.nix
Normal file
9
nix/shell.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs ? import (import ./npins).nixpkgs {} }:
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
(pkgs.python3.withPackages (ps: [
|
||||
ps.mkdocs
|
||||
(ps.callPackage ./mkdocs-terminal.nix {})
|
||||
]))
|
||||
];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs ? import (import ./npins).nixpkgs {} }:
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
(pkgs.python3.withPackages (ps: [
|
||||
ps.mkdocs
|
||||
ps.mkdocs-terminal
|
||||
]))
|
||||
];
|
||||
}
|
1
shell.nix
Symbolic link
1
shell.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
nix/shell.nix
|
Loading…
Reference in a new issue