Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Matthew Bauer matthewbauer

View GitHub Profile
View nixpkgs-gcc.nix
{
ghc6104 = (import (builtins.fetchTarball "channel:nixos-17.09") {}).haskell.compiler.ghc6104;
ghc6121 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc6121.ghc;
ghc6122 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc6122.ghc;
ghc6123 = (import (builtins.fetchTarball "channel:nixos-17.09") {}).haskell.compiler.ghc6123;
ghc701 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc701.ghc;
ghc702 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc702.ghc;
ghc703 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc703.ghc;
ghc704 = (import (builtins.fetchTarball "channel:nixos-18.03") {}).haskell.compiler.ghc704;
ghc721 = (import (builtins.fetchTarball "channel:nixos-14.04") {}).pkgs.haskell.packages_ghc721.ghc;
@matthewbauer
matthewbauer / channels.nix
Last active Feb 26, 2019
channel changing
View channels.nix
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";
View gist:25d5245e7900f955b07c0f4a4224f6c7
# 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
{
View keybase.md

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:

View qmk.log
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
View nix-2.1.3-x86_64-pc-mingw32.log
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
View test.hs
-- 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"
View clang.log
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
View ghc-free-ios.log
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 )
View info-pages.nix
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
You can’t perform that action at this time.