-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb79ec
commit b8a42e7
Showing
30 changed files
with
229 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,10 @@ | ||
let | ||
pkgs = import ./pkgs.nix; | ||
nixpkgs = import pkgs.nixpkgs {}; | ||
notebooks = map (folder: { | ||
name = folder; | ||
path = import (./. + "/${folder}"); | ||
}); | ||
in nixpkgs.linkFarm "notebooks" (notebooks [ | ||
"callcc" | ||
"chart-diagrams" | ||
"codensity" | ||
"continuations" | ||
"deriving-via" | ||
"docker" | ||
"dragon-curve" | ||
"efficient-combinator-parsers" | ||
"git-from-scratch" | ||
"graphviz" | ||
"hamt" | ||
"hs-updater" | ||
"intmap" | ||
"lambda" | ||
"mph" | ||
"refactoring-tarjan" | ||
"revisiting-monadic-parsing-haskell" | ||
"revisiting-poor-mans-concurrency" | ||
"smt" | ||
"solver" | ||
"tarjan" | ||
"trees-that-shrink" | ||
"typeclasses" | ||
"zulip-api" | ||
]) | ||
(import | ||
( | ||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in | ||
fetchTarball { | ||
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) | ||
{ src = ./.; } | ||
).defaultNix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-23.11"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
inputs.nix-filter.url = "github:numtide/nix-filter"; | ||
inputs.ihaskell.url = "github:IHaskell/IHaskell"; | ||
inputs.ihaskell.flake = false; | ||
inputs.flake-compat.url = "github:edolstra/flake-compat"; | ||
|
||
nixConfig = { | ||
extra-substituters = [ | ||
"https://ihaskell.cachix.org" | ||
"https://vaibhavsagar.cachix.org" | ||
]; | ||
extra-trusted-public-keys = [ | ||
"ihaskell.cachix.org-1:WoIvex/Ft/++sjYW3ntqPUL3jDGXIKDpX60pC8d5VLM=" | ||
"vaibhavsagar.cachix.org-1:PxFckJ8oAzgF4sdFJ855Fw38yCVbXmzJ98Cc6dGzcE0=" | ||
]; | ||
}; | ||
|
||
outputs = {self, nixpkgs, flake-utils, nix-filter, ...}: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = import nixpkgs { inherit system; }; | ||
notebook = folder: { | ||
name = folder; | ||
path = import (./. + "/${folder}") { inherit system; }; | ||
}; | ||
notebooks = map notebook [ | ||
"callcc" | ||
"chart-diagrams" | ||
"codensity" | ||
"continuations" | ||
"deriving-via" | ||
"docker" | ||
"dragon-curve" | ||
"efficient-combinator-parsers" | ||
"git-from-scratch" | ||
"graphviz" | ||
"hamt" | ||
"hs-updater" | ||
"intmap" | ||
"lambda" | ||
"mph" | ||
"refactoring-tarjan" | ||
"revisiting-monadic-parsing-haskell" | ||
"revisiting-poor-mans-concurrency" | ||
"smt" | ||
"solver" | ||
"tarjan" | ||
"trees-that-shrink" | ||
"typeclasses" | ||
"zulip-api" | ||
]; | ||
in { | ||
packages = builtins.listToAttrs (map (n: {name = n.name; value = n.path;}) notebooks); | ||
defaultPackage = pkgs.linkFarm "notebooks" notebooks; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.