-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoverlay.nix
33 lines (32 loc) · 1.27 KB
/
overlay.nix
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
final : previous : with final.haskell.lib; {
haskell = previous.haskell // {
packageOverrides = self : super : {
terminal-progress-bar =
let src = previous.runCommand "terminal-progress-bar-src" {
lib = ./lib;
LICENSE = ./LICENSE;
CHANGELOG = ./changelog.md;
} ''
mkdir -p $out
cp -r $lib/src $out/src
cp -r $lib/test $out/test
cp -r $lib/bench $out/bench
cp $LICENSE $out/LICENSE
cp $CHANGELOG $out/CHANGELOG
cp $lib/terminal-progress-bar.cabal $out
'';
in doBenchmark (super.callCabal2nix "terminal-progress-bar" src {});
terminal-progress-bar-example =
let src = previous.runCommand "terminal-progress-bar-example-src" {
example = ./example;
LICENSE = ./LICENSE;
} ''
mkdir -p $out
cp $example/example.hs $out
cp $LICENSE $out/LICENSE
cp $example/terminal-progress-bar-example.cabal $out
'';
in super.callCabal2nix "terminal-progress-bar-example" src {};
};
};
}