Create Nix environment for the wiki

This commit is contained in:
Gabriel Arazas 2022-04-01 16:37:05 +08:00
parent cde9112a9d
commit f346bbc135
3 changed files with 35 additions and 2 deletions

23
flake.lock generated Normal file
View File

@ -0,0 +1,23 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 0,
"narHash": "sha256-Ctij+dOi0ZZIfX5eMhgwugfvB+WZSrvVNAyAuANOsnQ=",
"path": "/nix/store/m2vv0bxfchzrjngx8wi0i7dhzb9q2g50-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

6
flake.nix Normal file
View File

@ -0,0 +1,6 @@
{
description = "The flake for this project.";
outputs = inputs@{ self, nixpkgs, ... }: {
devShell.x86_64-linux = import ./shell.nix { pkgs = import nixpkgs { system = "x86_64-linux"; }; };
};
}

View File

@ -1,18 +1,22 @@
{ pkgs ? import (fetchTarball "http://nixos.org/channels/nixos-21.05/nixexprs.tar.xz") {} }:
{ pkgs ? import <nixpkgs> { } }:
let
python3WithPackages = pkgs.python3.withPackages(p:
with pkgs.python3Packages; [
pynvim
jupyter
black
]);
in
pkgs.mkShell {
buildInputs = with pkgs; [
flow
gcc
gnumake
gnuplot
graphviz
lilypond
nodejs-14_x
nodejs-16_x
octaveFull
python3WithPackages
racket