Skip to content

Instantly share code, notes, and snippets.

View dezgeg's full-sized avatar

Tuomas Tynkkynen dezgeg

  • Helsinki, Finland
View GitHub Profile
let
pkgs = import ./. {};
processAttrset = attrPath: attrSet: keys: recurse:
pkgs.lib.concatMap
(attr:
let e = (builtins.tryEval attrSet.${attr});
in if !e.success
then []
else if ((e.value.recurseForDerivations or false) || (e.value.recurseForRelease or false)) && recurse
then processAttrset "${attrPath}${attr}." e.value (builtins.attrNames e.value) true
import org.apache.http.HttpVersion;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.impl.client.AbstractHttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
machine# [ 240.742072] systemd-shutdown[1]: Powering off.
machine# [ 240.857216] ACPI: Preparing to enter system sleep state S5
machine# [ 240.857694] reboot: Power down
vde_switch: EOF data port: Interrupted system call
machine: waiting for unit ‘local-fs.target’
machine: running command: systemctl --no-pager show 'local-fs.target'
machine: waiting for the VM to finish booting
machine: starting vm
machine: QEMU running (pid 10795)
machine# Warning: vlan 0 is not connected to host network
# This Makefile builds a shared version of the library,
# libbz2.so.1.0.6, with soname libbz2.so.1.0,
# at least on x86-Linux (RedHat 7.2),
# with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).
# Please see the README file for some important info
# about building the library like this.
# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
#!/usr/bin/env bash
outputs=$(cat | sed -e 's/^building path(s) //' | tr -dc 'a-zA-Z0-9 \n_./+-')
for src in $outputs; do
for dest in $outputs; do
if [ "$src" = "$dest" ]; then
continue
fi
echo "$src -> $dest"
grep -R "$dest" "$src" | sed -e 's/^/ /'
import ./default.nix {
crossSystem = rec {
config = "armv7l-unknown-linux-gnueabi";
bigEndian = false;
arch = "arm";
float = "hard";
fpu = "vfpv3-d16";
withTLS = true;
libc = "glibc";
platform = {
{ config, pkgs, lib, ... }:
{
# NixOS wants to enable GRUB by default
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelPackages = pkgs.linuxPackages_rpi;
# Manual doesn't currently evaluate on ARM
#!/usr/bin/env bash
set -e
usage() {
echo "usage: $0 (-A <attrpath> | <path/to/pkg.nix>) [-I nixpkgs=...]" >&2
exit 1
}
nixArgs=""
attrPath=""
checking for Berkeley DB 6.9 in /nix/store/9052b9a3dp78kr3gdw0kc4qiirrjlncc-db-5.3.28...
checking db69/db.h usability... no
checking db69/db.h presence... no
checking for db69/db.h... no
checking db6/db.h usability... no
checking db6/db.h presence... no
checking for db6/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
[10053.929142] BUG: Bad page map in process git pte:9272079f pmd:ea20a831
[10053.935893] page:ee890080 count:1 mapcount:-1 mapping:d8d77e3c index:0x482d
[10053.942905] flags: 0x2027c(referenced|uptodate|dirty|lru|active|arch_1|mappedtodisk)
[10053.950846] page dumped because: bad pte
[10053.954783] page->mem_cgroup:ed805800
[10053.958458] addr:b3e1e000 vm_flags:00000071 anon_vma: (null) mapping:d8d77e3c index:482d
[10053.966699] file:pack-2579daa3b5dff7d187159e93b6f2e2b5c4ba5643.idx fault:filemap_fault mmap:ext4_file_mmap readpage:ext4_readpage
[10053.978435] CPU: 0 PID: 5659 Comm: git Not tainted 4.2.0-rc3 #1-NixOS
[10053.984900] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
[10053.991203] [<c021b164>] (unwind_backtrace) from [<c0215f20>] (show_stack+0x20/0x24)