-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdefault.nix
38 lines (35 loc) · 1.82 KB
/
default.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
34
35
36
37
38
# You can build this repository by running:
# $ nix-build
{
pkgs ? (import (import ./nix/sources.nix).nixpkgs {})
, compiler ? "default"
}:
let
filter = import ./nix/filter.nix;
hpkgs = import ./nix/hpkgs.nix {inherit pkgs compiler;};
hrubySrc = pkgs.fetchFromGitHub {
owner = "bartavelle";
repo = "hruby";
rev = "v0.3.8.1";
sha256 = "tXzcqwL9NugpkVd0qxq3B/MB6sKnWDj4uAlC6E2pO7Y=";
};
haskellPackages = hpkgs.override {
overrides = self: super: rec {
hruby = (self.callCabal2nix
"hruby"
hrubySrc { }
);
language-puppet = with pkgs.haskell.lib;
disableLibraryProfiling
( self.callCabal2nix
"language-puppet"
(builtins.path { name = "language-puppet"; inherit filter; path = ./.; } )
{ }
);
};
};
in
# There is no need to create a static exec or other related artifacts as of now
# This is because the drv is used as a library.
# For now we just return the single drv without wrapping it in a record.
haskellPackages.language-puppet