Skip to content

Commit daa4f59

Browse files
committed
flake.nix: init
1 parent 1eb79ec commit daa4f59

File tree

30 files changed

+229
-115
lines changed

30 files changed

+229
-115
lines changed

callcc/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

chart-diagrams/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

codensity/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

continuations/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

default.nix

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
1-
let
2-
pkgs = import ./pkgs.nix;
3-
nixpkgs = import pkgs.nixpkgs {};
4-
notebooks = map (folder: {
5-
name = folder;
6-
path = import (./. + "/${folder}");
7-
});
8-
in nixpkgs.linkFarm "notebooks" (notebooks [
9-
"callcc"
10-
"chart-diagrams"
11-
"codensity"
12-
"continuations"
13-
"deriving-via"
14-
"docker"
15-
"dragon-curve"
16-
"efficient-combinator-parsers"
17-
"git-from-scratch"
18-
"graphviz"
19-
"hamt"
20-
"hs-updater"
21-
"intmap"
22-
"lambda"
23-
"mph"
24-
"refactoring-tarjan"
25-
"revisiting-monadic-parsing-haskell"
26-
"revisiting-poor-mans-concurrency"
27-
"smt"
28-
"solver"
29-
"tarjan"
30-
"trees-that-shrink"
31-
"typeclasses"
32-
"zulip-api"
33-
])
1+
(import
2+
(
3+
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
4+
fetchTarball {
5+
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6+
sha256 = lock.nodes.flake-compat.locked.narHash;
7+
}
8+
)
9+
{ src = ./.; }
10+
).defaultNix

deriving-via/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

docker/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
NB_USER = "jovyan";
1819
NB_UID = "1000";

dragon-curve/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

efficient-combinator-parsers/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ system ? builtins.currentSystem }:
12
let
23
pkgs = import ../pkgs.nix;
34
overlay = sel: sup: {
@@ -12,7 +13,7 @@ let
1213
};
1314
};
1415
};
15-
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
16+
nixpkgs = (import pkgs.nixpkgs { inherit system; overlays = [ overlay ]; });
1617
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
1718
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
1819
extraEnvironmentBinaries = [jupyterlab];

flake.lock

Lines changed: 110 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)