Really fix nixeries
All checks were successful
build configuration / build (push) Successful in 39s

This commit is contained in:
sinavir 2024-09-24 11:54:59 +02:00
parent d77cbdc735
commit 1b78a1dc58
5 changed files with 57 additions and 9 deletions

47
nix/mkdocs-terminal.nix Normal file
View 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
View file

@ -0,0 +1,9 @@
{ pkgs ? import (import ./npins).nixpkgs {} }:
pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (ps: [
ps.mkdocs
(ps.callPackage ./mkdocs-terminal.nix {})
]))
];
}

View file

@ -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
View file

@ -0,0 +1 @@
nix/shell.nix