Skip to content

Instantly share code, notes, and snippets.

@gilligan
gilligan / salute.sh
Created February 7, 2017 11:47
salute.sh
#!/bin/sh
echo "Salute!"
! function(window, document) {
var localStorage = window.localStorage;
if (!window.MecashReplace) {
var a = document.createElement("a"),
noop = function() {},
Event = function() {
function e(e) {
if (e = e || window.event, e.isFixed) return e;
if (e.isFixed = !0, e.preventDefault = e.preventDefault || function() {
this.returnValue = !1
with (import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs-channels/tarball/4db8ca39cf56a3b32af9fd589b81bf487a6b43c3") {});
stdenv.mkDerivation {
name = "nodejs-foo";
src = null;
buildInputs = [ nodejs-6_x ];
shellHook = ''
node
'';
}
% nix-env -iA nixpkgs.ghcEnv ✹ ✭
installing ‘ghc-8.0.1’
these derivations will be built:
/nix/store/cv2jf2n025qfl66zmwg3i3sqas19xwbx-hoogle-local-0.1.drv
/nix/store/g8sc9ly8n6hi99r306n7xzg6z3xb97qk-ghc-8.0.1.drv
building path(s) ‘/nix/store/iz1smk519gbnzz0bk524l37dh9wb884p-hoogle-local-0.1’
building
importing builtin packages
Error, database does not exist (run 'hoogle generate' first)
Filename: /nix/store/amyx4gmgdj5q8zvrnidkdlnag4hs1za4-ghc-8.0.1-doc/share/doc/ghc/html/libraries/Cabal-1.24.0.0
[ 6 of 12] Compiling Data.Conduit.Lazy ( Data/Conduit/Lazy.hs, dist/build/Data/Conduit/Lazy.o )
Test suite test: PASS
Test suite logged to: dist/test/wai-3.2.1.1-test.log
1 of 1 test suites (1 of 1 test cases) passed.
haddockPhase
Preprocessing executable 'aeson-pretty' for aeson-pretty-0.8.1...
Preprocessing library aeson-pretty-0.8.1...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: fail-4.9.0.0
Running Haddock for wai-3.2.1.1...
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 1cd4e15..85b6b8e 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -160,7 +160,15 @@ self: super: {
# FSEvents API is very buggy and tests are unreliable. See
# http://openradar.appspot.com/10207999 and similar issues.
# https://github.com/haskell-fswatch/hfsnotify/issues/62
- fsnotify = dontCheck super.fsnotify; # if pkgs.stdenv.isDarwin then dontCheck super.fsnotify else super.fsnotify;
+ fsnotify = overrideCabal super.fsnotify (drv: {
Running Mkbootstrap for WWW::Curl ()
chmod 644 "Curl.bs"
"/nix/store/mbqh1c89k81ayk0vj8gydibb2n33b6ir-perl-5.22.2/bin/perl" "-Iinc" "/nix/store/mbqh1c89k81ayk0vj8gydibb2n33b6ir-perl-5.22.2/lib/perl5/5.22.2/ExtUtils/xsubpp" -typemap "/nix/store/mbqh1c89k81ayk0vj8gydibb2n33b6ir-perl-5.22.2/lib/perl5/5.22.2/ExtUtils/typemap" -typemap "typemap" Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
cc -c -I/nix/store/b61scv9cqakq6ibcn92gs4li9napy3na-curl-7.50.1-dev/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/no-such-path/include -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" "-I/nix/store/mbqh1c89k81ayk0vj8gydibb2n33b6ir-perl-5.22.2/lib/perl5/5.22.2/darwin-2level/CORE" Curl.c
In file included from Curl.xs:574:
./curlopt-constants.c:19:58: error: non-void function 'constant' should return a value [-Wreturn-type]
if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS;
unable to connect to ‘root@10.89.4.151’
unable to open SSH connection to ‘root@10.89.4.151’, trying other available machines...
building path(s) ‘/nix/store/w9r01mp2702jn47sw42qrm5wch4fvn31-users-groups.json’
error: a ‘x86_64-linux’ is required to build ‘/nix/store/yricghikxxidysq5440lznx0nzc43jzz-users-groups.json.drv’, but I am a ‘x86_64-darwin’
error: unable to build all machine configurations
building ‘/nix/store/ld6yvkgvp42n5lr52466qxzg3wmpj4m1-audit-start.drv’ on ‘root@10.89.4.151’
copying 1 missing paths (0.00 MiB) to ‘root@10.89.4.151’...
building ‘/nix/store/cfjp2i7fkdyxslmmxszxg2h1l0fqh76d-audit-stop.drv’ on ‘root@10.89.4.151’
copying 181 missing paths (218.84 MiB) to ‘root@10.89.4.151’...
building ‘/nix/store/ndx0wsa8kyfhia5aj3k4xar0jvmyzvml-unit-audit.service.drv’ on ‘root@10.89.4.151’
copying 1 missing paths (0.00 MiB) to ‘root@10.89.4.151’...
building ‘/nix/store/isb5d52q74gql2qbc6rkq0yn7kiqm6dc-client.conf.drv’ on ‘root@10.89.4.151’
unable to connect to ‘root@10.89.4.151’
unable to open SSH connection to ‘root@10.89.4.151’, trying other available machines...
building path(s) ‘/nix/store/94s0ysxysb39m8v3mkj1qq7pwaipfr4q-container-init’
% rm -rf ~/.cache/nix/tarballs/* 1 ↵
zsh: sure you want to delete all the files in /Users/tpflug/.cache/nix/tarballs [yn]? y
[tpflug@yoneda:/tmp]
% nix-shell & nix-shell
[38] 45844
downloading ‘https://github.com/NixOS/nixpkgs/tarball/27af419541a50c33d2bf0762c8740552794e5b1a’... downloading ‘https://github.com/NixOS/nixpkgs/tarball/27af419541a50c33d2bf0762c
8740552794e5b1a’... [01D [0/0 K/i0B ,Ki B0 [30/1 [ [6015/14614 KiB, 364.2 KiB/s]
unpacking ‘https://github.com/NixOS/nixpkgs/tarball/27af419541a50c33d2bf0762c8740552794e5b1a’...
[8605/14614 KiB, 440.8 KiB/s][38] + 45844 suspended (tty input) nix-shell
[14423/14614 KiB, 564.4 KiB/s]