From f346bbc13589d09fd3d1d1c0b4a15807e44e5a5e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 1 Apr 2022 16:37:05 +0800 Subject: [PATCH] Create Nix environment for the wiki --- flake.lock | 23 +++++++++++++++++++++++ flake.nix | 6 ++++++ shell.nix | 8 ++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..2d742ce --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..79e8b5a --- /dev/null +++ b/flake.nix @@ -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"; }; }; + }; +} diff --git a/shell.nix b/shell.nix index eea232a..c00c2f4 100644 --- a/shell.nix +++ b/shell.nix @@ -1,18 +1,22 @@ -{ pkgs ? import (fetchTarball "http://nixos.org/channels/nixos-21.05/nixexprs.tar.xz") {} }: +{ pkgs ? import { } }: 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