Skip to content

Instantly share code, notes, and snippets.

@halogenandtoast
Last active June 15, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halogenandtoast/aa553b4ea86e1f97268eb626bd7135c7 to your computer and use it in GitHub Desktop.
Save halogenandtoast/aa553b4ea86e1f97268eb626bd7135c7 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
pinnedPkgs = import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "f52505fac";
sha256 = "0q2m2qhyga9yq29yz90ywgjbn9hdahs7i8wwlq7b55rdbyiwa5dy";
}){};
miso = pinnedPkgs.haskell.packages.ghcjs.callCabal2nix "miso" (pkgs.fetchFromGitHub {
owner = "dmjio";
repo = "miso";
rev = "bb2be3264ff3c6aa3b18e471d7cf04296024059b";
sha256 = "07k1rlvl9g027fp2khl9kiwla4rcn9sv8v2dzm0rzf149aal93vn";
}){};
in
pinnedPkgs.haskell.packages.ghcjs.callPackage ./app.nix {
inherit miso;
}
> nix-build
building '/nix/store/q325bf3n7y33nszmsn9pgcnxbp3dpava-python3-3.7.3.drv'...
unpacking sources
unpacking source archive /nix/store/r5ik1sbafp0kr3a7prnaca1lmmqmb0b6-Python-3.7.3.tar.xz
source root is Python-3.7.3
setting SOURCE_DATE_EPOCH to timestamp 1553547549 of file Python-3.7.3/Misc/NEWS
patching sources
applying patch /nix/store/gd8ycd6j3qhcq1qccaqz68zdq5l4c2wf-no-ldconfig.patch
patching file Lib/ctypes/util.py
applying patch /nix/store/ggk7z3dvydrkypxff7d7c6v1slvbriin-darwin-libutil.patch
patching file Modules/posixmodule.c
Hunk #1 succeeded at 5907 (offset 27 lines).
applying patch /nix/store/9kwzs3pplms8sijf55sdryypzvic4x1s-python-3.x-distutils-C++.patch
patching file Lib/_osx_support.py
patching file Lib/distutils/cygwinccompiler.py
patching file Lib/distutils/sysconfig.py
Hunk #1 succeeded at 183 (offset 13 lines).
Hunk #2 succeeded at 202 (offset 13 lines).
Hunk #3 succeeded at 231 (offset 13 lines).
patching file Lib/distutils/unixccompiler.py
Hunk #3 FAILED at 183.
1 out of 3 hunks FAILED -- saving rejects to file Lib/distutils/unixccompiler.py.rej
patching file Makefile.pre.in
Hunk #1 succeeded at 615 (offset 31 lines).
builder for '/nix/store/q325bf3n7y33nszmsn9pgcnxbp3dpava-python3-3.7.3.drv' failed with exit code 1
cannot build derivation '/nix/store/26rq8gd6dh6vzn9rzz56ljqdr1sq90wi-ghc-8.6.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6sxn76pka3xr30c1wg49q01qpkzy9jdh-cabal2nix-2.14.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7p9lhzlavnxwf82j2ppad8lm3idg0l02-cabal2nix-miso.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7p9lhzlavnxwf82j2ppad8lm3idg0l02-cabal2nix-miso.drv' failed
(use '--show-trace' to show detailed location information)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment