Skip to content

Commit 8cb3b66

Browse files
committed
Add haskell.nix to release.nix and shell.nix
1 parent bef6f2d commit 8cb3b66

File tree

24 files changed

+183
-82
lines changed

24 files changed

+183
-82
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ hsenv.log
3636
/ghci-tmp
3737
*.dump-*
3838
*.verbose-core2core
39+
.nix
File renamed without changes.

nix/deps/haskell.nix/github.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"owner": "input-output-hk",
3+
"repo": "haskell.nix",
4+
"branch": "master",
5+
"private": false,
6+
"rev": "d8c50dcaf3d3d589829ee9be9d5dba8279b8cc59",
7+
"sha256": "0a5hgryz6nszmy67yf1aks399h2aw0nj845518c4prs5c6ns1z7p"
8+
}
File renamed without changes.
File renamed without changes.

nix/deps/nix-haskell-ci/github.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"owner": "ymeister",
3+
"repo": "nix-haskell-ci",
4+
"branch": "main",
5+
"private": false,
6+
"rev": "d9b08e888c6c6b0e426e23ad81c7d492e519e541",
7+
"sha256": "0b6dn5y6sl24smiw20j4faa6061djv33hfb985gr9s5v17wx8wp7"
8+
}
File renamed without changes.

nix/deps/nix-haskell/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# DO NOT HAND-EDIT THIS FILE
2+
import (import ./thunk.nix)

nix/deps/nix-haskell/github.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"owner": "ymeister",
3+
"repo": "nix-haskell",
4+
"branch": "main",
5+
"private": false,
6+
"rev": "9f4e8b7f09060edca0fdfe1cc3e0125c6ed3bf42",
7+
"sha256": "1054n0m9f15pbg279k1dl7b9398j01mppvz83cns19xrjs2b282m"
8+
}

nix/deps/nix-haskell/thunk.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# DO NOT HAND-EDIT THIS FILE
2+
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
3+
if !fetchSubmodules && !private then builtins.fetchTarball {
4+
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
5+
} else (import (builtins.fetchTarball {
6+
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
7+
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
8+
}) {}).fetchFromGitHub {
9+
inherit owner repo rev sha256 fetchSubmodules private;
10+
};
11+
json = builtins.fromJSON (builtins.readFile ./github.json);
12+
in fetch json

0 commit comments

Comments
 (0)