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