Skip to content

Instantly share code, notes, and snippets.

@Rizary
Created May 22, 2019 22:14
Show Gist options
  • Save Rizary/6384fb87a5a7e7e35bd2d7e5bfb1d901 to your computer and use it in GitHub Desktop.
Save Rizary/6384fb87a5a7e7e35bd2d7e5bfb1d901 to your computer and use it in GitHub Desktop.
building '/nix/store/sxsq3miyy72wzws7528vj5iaxfcy7icg-cabal2nix-2.5.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/snpnx6gdggvjpdig04n4q7x2yd1bgjbb-ghc-8.0.2.
unpacking sources
unpacking source archive /nix/store/m6vik2fj2bvqi85jpc1q6bz1mg4z3whk-cabal2nix-2.5.tar.gz
source root is cabal2nix-2.5
/nix/store/j1ly0zzpnzb8y8ry6k4vi4prk8vwq233-set-source-date-epoch-to-latest.sh: line 7: warning: command substitution: ignored null byte in input
setting SOURCE_DATE_EPOCH to timestamp 1503748469 of file cabal2nix-2.5/test/doctests.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-cabal2nix-2.5.drv-0/package.conf.d -j8 -threaded
[1 of 1] Compiling Main ( Setup.hs, /tmp/nix-build-cabal2nix-2.5.drv-0/Main.o )
The futex facility returned an unexpected error code./nix/store/rdh818ksl1337521b4xfyjlchy6y20n2-stdenv/setup: line 1202: 7535 Aborted (core dumped) ghc $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
builder for '/nix/store/sxsq3miyy72wzws7528vj5iaxfcy7icg-cabal2nix-2.5.drv' failed with exit code 134
cannot build derivation '/nix/store/wmrk7p7q63d3kjyqi7iq300ynsd4cxv9-cabal2nix-base-compat-0.9.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/wmrk7p7q63d3kjyqi7iq300ynsd4cxv9-cabal2nix-base-compat-0.9.2.drv' failed
(use '--show-trace' to show detailed location information)
let
ghc-compiler = "ghc822";
system = builtins.currentSystem;
getReflexPlatform = sys: import (import ./nixdeps/frontend-deps/reflex-platform.nix) { inherit iosSdkVersion; system = sys; };
reflex-platform = getReflexPlatform system;
frontend-unminified =
(reflex-platform.project ({ pkgs, ... }: {
packages = {
frontend = ./frontend/.;
};
shells = {
ghcjs = ["frontend"];
};
overrides = self: super:
let
fast = p: pkgs.haskell.lib.dontHaddock (pkgs.haskell.lib.dontCheck p);
in rec {
reflex-dom-contrib = self.callCabal2nix "reflex-dom-contrib"
(pkgs.fetchFromGitHub {
owner = "reflex-frp";
repo = "reflex-dom-contrib";
rev = "b47f90c810c838009bf69e1f8dacdcd10fe8ffe3";
sha256 = "0yvjnr9xfm0bg7b6q7ssdci43ca2ap3wvjhshv61dnpvh60ldsk9";
}) {};
frontend = fast super.frontend;
};
})).ghcjs.frontend;
in
newPkgs: oldPkgs: let
fast = p: oldPkgs.haskell.lib.dontHaddock (oldPkgs.haskell.lib.dontCheck p);
static = p: oldPkgs.haskell.lib.justStaticExecutables (fast p);
in {
# Frontend Webapp
riziFrontend = frontend-unminified;
riziFrontend-static = static frontend-unminified;
}
let
fetchPkgs = import ./../nixpkgs.nix;
initialPkgs = import fetchPkgs {};
sources = rec {
reflex-platform-pinned-github = initialPkgs.pkgs.lib.importJSON ./reflex-platform.json;
reflex-platform = initialPkgs.pkgs.fetchFromGitHub {
owner = "reflex-frp";
repo = "reflex-platform";
inherit (reflex-platform-pinned-github) rev sha256;
};
};
reflex-platform = sources.reflex-platform;
in
reflex-platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment