forked from CardanoSolutions/ogmios
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.nix
57 lines (56 loc) · 1.73 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# <<<<<<< HEAD
(
import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
) {
src = ./.;
}
).defaultNix
# =======
# { compiler ? "ghc8107"
# , system ? builtins.currentSystem
# , haskellNix ? import
# (builtins.fetchTarball
# "https://github.com/input-output-hk/haskell.nix/archive/974a61451bb1d41b32090eb51efd7ada026d16d9.tar.gz")
# { }
# , iohkNix ? import
# (builtins.fetchTarball
# "https://github.com/input-output-hk/iohk-nix/archive/edb2d2df2ebe42bbdf03a0711115cf6213c9d366.tar.gz")
# { }
# , nixpkgsSrc ? haskellNix.sources.nixpkgs-unstable
# , nixpkgsArgs ? haskellNix.nixpkgsArgs
# }:
# let
# pkgs = import nixpkgsSrc (nixpkgsArgs // {
# overlays =
# # iohkNix overlay needed for cardano-api wich uses a patched libsodium
# haskellNix.overlays ++ iohkNix.overlays.crypto;
# });
# mkProject = arch:
# ( arch.haskell-nix.project {
# compiler-nix-name = compiler;
# projectFileName = "cabal.project";
# src = arch.haskell-nix.haskellLib.cleanSourceWith {
# name = "ogmios-src";
# src = ./.;
# subDir = "server";
# filter = path: type:
# builtins.all (x: x) [
# (baseNameOf path != "package.yaml")
# ];
# };
# }
# ).ogmios.components.exes.ogmios;
# in {
# platform = {
# # arm64 = (mkProject pkgs.pkgsCross.aarch64-multiplatform-musl);
# amd64 = (mkProject pkgs.pkgsCross.musl64);
# };
# }
# >>>>>>> 744654fda5043ac74a4a01055aa5ef1dae601a6d