diff options
author | Adrian Kummerlaender | 2021-08-18 19:02:56 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-08-18 19:02:56 +0200 |
commit | d7376225387e88547ac56409aefb7443af32b7fd (patch) | |
tree | cd76aab1c08d31dc4ad18764a77958dc6c6f952b | |
parent | 8ec6ada4b1fb7c10b5abda1216daa4502b01ada3 (diff) | |
download | nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar.gz nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar.bz2 nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar.lz nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar.xz nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.tar.zst nixos_home-d7376225387e88547ac56409aefb7443af32b7fd.zip |
Move jupyterWith to flake inputs
-rw-r--r-- | flake.lock | 17 | ||||
-rw-r--r-- | flake.nix | 9 | ||||
-rw-r--r-- | tasks/default.nix | 7 |
3 files changed, 26 insertions, 7 deletions
@@ -37,6 +37,22 @@ "type": "github" } }, + "jupyter": { + "flake": false, + "locked": { + "lastModified": 1627572257, + "narHash": "sha256-0zNm9EM7xJbYfaWylPvwApo1MM65eJiFkVlZRwJzGgY=", + "owner": "tweag", + "repo": "jupyterWith", + "rev": "37cd8caefd951eaee65d9142544aa4bd9dfac54f", + "type": "github" + }, + "original": { + "owner": "tweag", + "repo": "jupyterWith", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1629139728, @@ -85,6 +101,7 @@ "inputs": { "emacs": "emacs", "home-manager": "home-manager", + "jupyter": "jupyter", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "personal": "personal" @@ -13,9 +13,15 @@ url = https://pkgs.kummerlaender.eu/nixexprs.tar.xz; flake = false; }; + jupyter = { + url = github:tweag/jupyterWith; + flake = false; + }; }; - outputs = { self, nixpkgs, nixpkgs-unstable, emacs, home-manager, personal, ... }: let + outputs = { + self, nixpkgs, nixpkgs-unstable, emacs, home-manager, personal, jupyter, ... + }: let system = "x86_64-linux"; pkgs = import nixpkgs { @@ -32,6 +38,7 @@ config = { allowUnfree = true; }; overlays = [ emacs.overlay ]; }; + jupyter = import jupyter { }; }; imports = [ ./home.nix ]; nixpkgs = { diff --git a/tasks/default.nix b/tasks/default.nix index d1c7bc9..075af56 100644 --- a/tasks/default.nix +++ b/tasks/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, jupyter, ... }: let mkShellDerivation = n: ps: pkgs.stdenvNoCC.mkDerivation rec { @@ -27,11 +27,6 @@ let ''; }; - jupyter = import (builtins.fetchGit { - url = https://github.com/tweag/jupyterWith; - rev = "35eb565c6d00f3c61ef5e74e7e41870cfa3926f7"; - }) {}; - mkJupyterEnv = kernel: jupyter.jupyterlabWith { kernels = [ kernel ]; }; |