Skip to content

Instantly share code, notes, and snippets.

Matthew Bauer matthewbauer

Block or report user

Report or block matthewbauer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View generate-versions.nix
# Usage: $ nix eval "(builtins.attrNames (import (builtins.fetchurl "https://matthewbauer.us/generate-versions.nix") {}).emacs)"
# $ nix run "(import (builtins.fetchurl "https://matthewbauer.us/generate-versions.nix") {}).emacs.\"24.3\"" -u LANG -c emacs
{ channels ? [ "19.03" "18.09" "18.03" "17.09" "17.03"
"16.09" "16.03" "15.09" "14.12" "14.04" "13.10" ]
, attrs ? builtins.attrNames (import <nixpkgs> {})
, system ? builtins.currentSystem
, args ? { inherit system; }
}: let
getSet = channel: (import (builtins.fetchTarball "channel:nixos-${channel}") args).pkgs;
View package-collections.org
NameYear started# of packages% up-to-date
Nixpkgs20034562481.6%
FreeBSD Ports19942704676.6%
Debian19943056566.5%
Red Hat19972224074.1%
Gentoo20021919365.0%
openSUSE19971180374.2%
pkgsrc19971449563.7%
Arch2002886087.6%
View gmp-ios.patch
diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix
index f320c303123..11453cb61af 100644
--- a/pkgs/development/libraries/gmp/6.x.nix
+++ b/pkgs/development/libraries/gmp/6.x.nix
@@ -30,7 +30,7 @@ let self = stdenv.mkDerivation rec {
# See <http://hydra.nixos.org/build/2760931>, for instance.
#
# no darwin because gmp uses ASM that clang doesn't like
- (stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86) "fat")
+ (stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.isiOS) "fat")
View nixpkgs-rules.org

Proposed Nixpkgs Rules

  • Mission statement: to package the latest, stable version of all of the world’s open source software with a living maintainer.
  • Other software is allowed on a case by case basis. Possible exceptions include, but not limited to:
    • Popular closed-source applications without a good alternative.
    • Older software that is required as a dependency of other packages.
View nixpkgs-ghc.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
You can’t perform that action at this time.