-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
55 lines (52 loc) · 1.91 KB
/
default.nix
File metadata and controls
55 lines (52 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ pkgs, base, data-default, lens, lib, template-haskell, which
, text, directory, filepath, temporary, process, runGhcBWrap-core
, tasty, tasty-hunit, mkDerivation, transformers
, hackludeCabalSrc ? null
}:
let
pkgs_unstable = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/e6f23dc08d3624daab7094b701aa3954923c6bbb.tar.gz";
}) {};
n_ = pkgs.fetchFromGitHub {
owner = "obsidiansystems";
repo = "nix-thunk";
rev = "8fe6f2de2579ea3f17df2127f6b9f49db1be189f";
sha256 = "14l2k6wipam33696v3dr3chysxhqcy0j7hxfr10c0bxd1pxv7s8b";
};
n = import n_ {};
sources = n.mapSubdirectories n.thunkSource ./thunks;
overrides_ = pre: post: {
runGhcBWrap-core = pkgs_unstable.haskell.lib.doJailbreak (post.callCabal2nix "runGhcBWrap-core" sources.runGhcBWrap-core {});
IStr = pre.callCabal2nix "IStr" sources.IStr {};
scrappy-core = pre.callCabal2nix "scrappy-core" sources.scrappy-core {};
} // (if hackludeCabalSrc != null then {
hacklude = pre.callCabal2nix "hacklude" hackludeCabalSrc {};
} else {});
ghc_9_12 = (pkgs_unstable.haskell.packages.ghc912.override { overrides = overrides_; }).ghcWithPackages (
hpkgs: with hpkgs; [
temporary vector aeson parsec hpkgs.runGhcBWrap-core hpkgs.IStr hpkgs.scrappy-core
] ++ (if hackludeCabalSrc != null then [ hpkgs.hacklude ] else [])
);
in
mkDerivation {
pname = "runGhcBWrap";
version = "0.1.0.0";
src = ./.;
libraryHaskellDepends = [
base data-default lens template-haskell text which
directory filepath temporary process runGhcBWrap-core
transformers
];
testHaskellDepends = [
tasty tasty-hunit text runGhcBWrap-core transformers
];
buildTools = [ pkgs.cabal-install ];
librarySystemDepends = [
ghc_9_12
pkgs.bubblewrap
pkgs.nix
];
homepage = "https://github.com/augyg/ClasshSS";
description = "Typified Tailwind for Rapid Development";
license = lib.licenses.mit;
}