Skip to content

Instantly share code, notes, and snippets.

View matthewbauer's full-sized avatar

Matthew Bauer matthewbauer

View GitHub Profile
@matthewbauer
matthewbauer / channels.nix
Last active February 26, 2019 22:57
channel changing
let mapAttrs = f: set: builtins.listToAttrs (
map (attr: { name = attr; value = f attr set.${attr}; })
(builtins.attrNames set));
channels = {
aardvark = "13.10";
baboon = "14.04";
caterpillar = "14.12";
dingo = "15.09";
emu = "16.03";
flounder = "16.09";
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
let
hosts = builtins.fromJSON (builtins.readFile ./hosts.json);
in
{

Keybase proof

I hereby claim:

  • I am matthewbauer on github.
  • I am matthewbauer (https://keybase.io/matthewbauer) on keybase.
  • I have a public key ASAuwlQTWZYGAtxMLBa6QOO2-qKWx5kSmKidgVeA7F49OQo

To claim this, I am signing this object:

build flags: SHELL=/nix/store/nii7pk6pv4x4as7vsxbvwyzjn67vax6r-bash-4.4-p23/bin/bash all:default
Making 1upkeyboards/1up60hse with keymap default [OK]
Making 1upkeyboards/1up60rgb with keymap default [OK]
Making 1upkeyboards/sweet16 with keymap default [OK]
Making 4x4 with keymap default [OK]
Making 5x5 with keymap default [OK]
Making 68keys with keymap default [OK]
Making 6ball with keymap default [OK]
Making 9key with keymap default [OK]
Making acr60 with keymap default
unpacking sources
unpacking source archive /nix/store/2ihgp08f4hgr7v0g8jp31sk7y7wxlkx2-nix-2.1.3.tar.xz
source root is nix-2.1.3
setting SOURCE_DATE_EPOCH to timestamp 1538428226 of file nix-2.1.3/src/libexpr/parser-tab.hh
patching sources
configuring
configure flags: --prefix=/nix/store/r3f19x5cnqzbrkd47bx6fqiym2y1qi62-nix-2.1.3-x86_64-pc-mingw32 --bindir=/nix/store/r3f19x5cnqzbrkd47bx6fqiym2y1qi62-nix-2.1.3-x86_64-pc-mingw32/bin --sbindir=/nix/store/r3f19x5cnqzbrkd47bx6fqiym2y1qi62-nix-2.1.3-x86_64-pc-mingw32/sbin --includedir=/nix/store/jznh48ksqx3rricy142h68pfkbhypfhg-nix-2.1.3-x86_64-pc-mingw32-dev/include --oldincludedir=/nix/store/jznh48ksqx3rricy142h68pfkbhypfhg-nix-2.1.3-x86_64-pc-mingw32-dev/include --mandir=/nix/store/hzhac1ygwxq2jz26fvmkl8839wwd0iz7-nix-2.1.3-x86_64-pc-mingw32-man/share/man --infodir=/nix/store/r3f19x5cnqzbrkd47bx6fqiym2y1qi62-nix-2.1.3-x86_64-pc-mingw32/share/info --docdir=/nix/store/b702x7vm1dlibrfw96qgl34x8dfyzv52-nix-2.1.3-x86_64-pc-mingw32-doc/share/doc/nix --libdir=/nix/stor
-- Compile: ghcjs -O -fforce-recomp test.hs
import qualified Data.Text.IO as T
import qualified Data.Text as T
import GHCJS.Prim
foreign import javascript unsafe "alert($1);" alert :: JSVal -> IO ()
main = do
alert $ toJSString "hello1"
exec
/nix/store/zq6w7nl1fgkm2449ip0f5rbjbczn8lb7-clang-5.0.2/bin/clang
-O2
-D_FORTIFY_SOURCE=2
-fstack-protector-strong
--param
ssp-buffer-size=4
-fno-strict-overflow
-Wformat
-Wformat-security
setupCompilerEnvironmentPhase
Build with /nix/store/l1s9rvy5s79js0rmkfq5j6hswp69cj12-aarch64-apple-ios-ghc-8.4.2.
unpacking sources
unpacking source archive /nix/store/nb78jvawyd45sd3i3hg4zwq5qz0zzngx-free-5.0.2.tar.gz
source root is free-5.0.2
setting SOURCE_DATE_EPOCH to timestamp 1524692704 of file free-5.0.2/src/Data/Functor/Classes/Compat.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-free-5.0.2-aarch64-apple-ios.drv-0/setup-package.conf.d -j8 -threaded
[1 of 1] Compiling Main ( Setup.lhs, /private/tmp/nix-build-free-5.0.2-aarch64-apple-ios.drv-0/Main.o )
let userPackages = []; # put user packages here
in {
infopages = buildEnv {
name = "info-pages";
paths = userPackages;
extraOutputsToInstall = [ "info" "doc" "devdoc" ];
pathsToLink = [ "/share/info" ];
postBuild = ''
shopt -s nullglob
for i in $out/share/info/*; do
# to run: nix-env -qa -f find-missing-versions.nix
{ condition ? v: (builtins.parseDrvName v.name).version == ""
, nixpkgs ? import <nixpkgs> { config = {
allowUnsupportedSystem = true;
allowInsecure = true;
allowUnfree = true;
};
}
}: