This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Guillaume Desforges
committed
Jan 10, 2020
1 parent
a38d095
commit 44514b7
Showing
7 changed files
with
29 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!.vscode/ | ||
|
||
**/dist-newstyle/ |
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,3 @@ | ||
{ | ||
"nixEnvSelector.nixShellConfig": "${workspaceRoot}/shell.nix" | ||
} |
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,9 +1,10 @@ | ||
# selector: | ||
# * Function to select HIE ghc versions. See here https://github.com/Infinisil/all-hies#declarative-installation-nixos-home-manager-or-similar | ||
# * Example: p: { inherit (p) ghc865; } | ||
{ selector }: | ||
{ ghc-version }: | ||
let | ||
# HIE from all-hies (use Cachix !) | ||
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {}; | ||
all-hies-rev = "master"; | ||
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/${all-hies-rev}") {}; | ||
in | ||
all-hies.selection { inherit selector; } | ||
all-hies.selection { selector = p: { "${ghc-version}" = builtins.getAttr ghc-version p; }; } |
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,15 +1,15 @@ | ||
{ usePinnedNixpkgs ? false }: | ||
# The version of nixpkgs used for this project | ||
let | ||
# Either a pinned version | ||
get-pinned-nixpkgs = rev: | ||
get-pinned-nixpkgs = ref: rev: | ||
builtins.fetchGit { | ||
url = "https://github.com/NixOS/nixpkgs.git"; | ||
ref = "master"; | ||
inherit rev; | ||
inherit ref rev; | ||
}; | ||
# pinned-nixpkgs = get-pinned-nixpkgs "cca0c894a13ec398de8b046174239513197f5c74" | ||
pinned-nixpkgs = get-pinned-nixpkgs "master" "cca0c894a13ec398de8b046174239513197f5c74" {}; | ||
|
||
# Or the current local | ||
current-local = import <nixpkgs>; | ||
current-local = import <nixpkgs> {}; | ||
in | ||
current-local | ||
if usePinnedNixpkgs then pinned-nixpkgs else current-local |
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