Skip to content

Instantly share code, notes, and snippets.

# This Makefile is for the NetAddr::IP::Util extension to perl.
#
# It was generated automatically by MakeMaker version
# 7.1002 (Revision: 71002) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
# ANY CHANGES MADE HERE WILL BE LOST!
#
# MakeMaker ARGV: (q[PREFIX=/nix/store/gzbb4v0qg5vdfd3gpcjkyf4prkfzrhna-perl-NetAddr-IP-4.079], q[INSTALLDIRS=site], q[PERL=/nix/store/ggb7k5x9855j10dz99467djx4rplg32b-perl-5.24.3/bin/perl], q[FULLPERL=/nix/store/ggb7k5x9855j10dz99467djx4rplg32b-perl-5.24.3/bin/perl])
#
on nixos running the build for NetAddr-IP-4.079 with tests enabled fails:
# build
t/v6-splitplan.t ...
1..28
ok 1 - use NetAddr::IP;
ok 2 - FFFF:A123:B345:C789:0:0:0:0/48 eq FFFF:A123:B345:C789:0:0:0:0/48
ok 3 - there is a plan
ok 4 - plan returns the orignal net
test_memorygrowth (test_core.default) ... ok
WARNING:root:not all asm.js optimizations are possible with SPLIT_MEMORY, disabling those. [-Walmost-asm]
WARNING:root:not all asm.js optimizations are possible with ALLOW_MEMORY_GROWTH, disabling those. [-Walmost-asm]
WARNING:root:not all asm.js optimizations are possible with ALLOW_MEMORY_GROWTH, disabling those. [-Walmost-asm]
WARNING:root:not all asm.js optimizations are possible with ALLOW_MEMORY_GROWTH, disabling those. [-Walmost-asm]
WARNING:root:not all asm.js optimizations are possible with ALLOW_MEMORY_GROWTH, disabling those. [-Walmost-asm]
INFO:root:generating system library: dlmalloc_tracing_debug.bc... (this will be cached in "/tmp/nix-build-emscripten-1.37.36.drv-0/.emscripten_cache/asmjs/dlmalloc_tracing_debug.bc" for subsequent builds)
test_memorygrowth_2 (test_core.asm1) ... ok
test_memorygrowth (test_core.asm3) ... ok
INFO:root: - ok
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
name = "github.com/Sirupsen/logrus"
packages = ["."]
revision = "d682213848ed68c0a260ca37d6dd5ace8423f5ba"
version = "v1.0.4"
[[projects]]
nixpkgs.overlays = lib.singleton (self: super: {
systemd = super.systemd.overrideAttrs (drv: rec {
src = /root/systemd;
patches = [];
autoreconfPhase = ''
touch autogen.sh
chmod u+x autogen.sh
ls -lathr
sed -i -e 's|/bin/bash|${pkgs.bash}/bin/bash|g' configure
sed -i -e 's|meson.*||g' configure
let
rebuild-on-change-daemon = (import <nixpkgs>{}).pkgs.fetchgit { rev = "21a589bfb4c7cd158d524db19d025e616325f34a"; sha256="1wxpzslpxxal1rnl1bns37p93m2i4vaba8lwz0qafh1rmsiqkn4p"; url=https://github.com/nixcloud/rebuild-on-change-daemon;};
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
"${rebuild-on-change-daemon}/rebuild-on-change-daemon.nix"
@qknight
qknight / ucurl.c
Created April 7, 2017 20:52 — forked from ato/ucurl.c
LD_PRELOAD wrapper which tricks curl (or anything else) into connecting to a unix domain socket
/*
* LD_PRELOAD wrapper which tricks curl (or anything else) into connecting to a unix domain socket
*
* Compile: gcc -o ucurl.so -shared ucurl.c -ldl -fPIC
* Usage: LD_PRELOAD=/path/to/ucurl.so SOCKET=/path/to/socket curl http://0.0.0.0/
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
# code from aszlig
# transparently injects reverse proxy (proxyMappings) magic into httpd and lighttpd
# idea is:
#
# nix-build aszlig.nix
#
# Proxy mappings:
#
# port: 1234
# mappings:
nix-build -A allCrates.tar --show-trace
error: while evaluating the attribute ‘buildPhase’ of the derivation ‘tar’ at /home/joachim/Desktop/projects/fractalide/nixcrates/nix-crates-index/all-carg-packages.nix:21:7:
while evaluating ‘fold’ at /nix/store/frxv73zjk0xkg6c90i9yb07pjfbcvr9z-nixos-16.09.1038.a6728e1/nixos/lib/lists.nix:29:19, called from /home/joachim/Desktop/projects/fractalide/nixcrates/nix-crates-index/all-carg-packages.nix:18:18:
while evaluating ‘fold'’ at /nix/store/frxv73zjk0xkg6c90i9yb07pjfbcvr9z-nixos-16.09.1038.a6728e1/nixos/lib/lists.nix:32:15, called from /nix/store/frxv73zjk0xkg6c90i9yb07pjfbcvr9z-nixos-16.09.1038.a6728e1/nixos/lib/lists.nix:36:8:
while evaluating anonymous function at /home/joachim/Desktop/projects/fractalide/nixcrates/nix-crates-index/all-carg-packages.nix:18:39, called from /nix/store/frxv73zjk0xkg6c90i9yb07pjfbcvr9z-nixos-16.09.1038.a6728e1/nixos/lib/lists.nix:35:14:
while evaluating ‘fold'’ at /nix/store/frxv73zjk0xkg6c90i9yb07pjfbcvr9z-nixos-16.09.1038.a6728e1/nix
strace -s 1000 -f -e execve cargo build
execve("/nix/store/f2dq5qhbny7dym75c7ai8fb6kyxlyvy9-cargo-0.12.0/bin/cargo", ["cargo", "build"], [/* 94 vars */]) = 0
execve("/nix/store/f2dq5qhbny7dym75c7ai8fb6kyxlyvy9-cargo-0.12.0/bin/.cargo-wrapped", ["/nix/store/f2dq5qhbny7dym75c7ai8fb6kyxlyvy9-cargo-0.12.0/bin/cargo", "build"], [/* 94 vars */]) = 0
strace: Process 4910 attached
[pid 4910] execve("/nix/store/fff3jbf9vbqhmf6qjrmzhliq516x7yrf-rustc-1.11.0/bin/rustc", ["rustc", "-vV", "--cap-lints", "allow"], [/* 94 vars */]) = 0
strace: Process 4911 attached
[pid 4911] +++ exited with 0 +++
[pid 4910] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4910, si_uid=1000, si_status=0, si_utime=13, si_stime=1} ---
strace: Process 4912 attached