Skip to content

Instantly share code, notes, and snippets.

@Widdershin
Last active Jan 17, 2019
Embed
What would you like to do?
self: super:
{
# Install overlay:
# $ mkdir -p ~/.config/nixpkgs/overlays
# $ curl https://gist.githubusercontent.com/LnL7/570349866bb69467d0caf5cb175faa74/raw/3f3d53fe8e8713ee321ee894ecf76edbcb0b3711/lnl-overlay.nix -o ~/.config/nixpkgs/overlays/lnl.nix
userPackages = super.userPackages or {} // {
self.config.allowUnfree = true;
# core
cacert = self.cacert;
nix = self.nix;
# terminal
ag = self.ag;
bat = self.bat;
ctags = self.ctags;
fzf = self.fzf;
git = self.git;
jq = self.jq;
httpie = self.httpie;
neovim = self.neovim;
tig = self.tig;
tmux = self.tmux;
tree = self.tree;
watch = self.watch;
zsh = self.zsh;
# databases
postgresql = self.postgresql;
# docker
docker = self.docker;
docker_machine = self.docker-machine;
docker_compose = self.docker_compose;
# programming lanugages
node = self.nodejs-10_x;
shellcheck = self.shellcheck;
# web development
chromedriver = self.chromedriver;
# devops
terraform = self.terraform;
aws = self.awscli;
python3 = self.python3;
pip = self.python37Packages.pip;
# TODO - aws-mfa
# nix tooling
pypi2nix = self.pypi2nix;
nix-rebuild = super.writeScriptBin "nix-rebuild" ''
#!${super.stdenv.shell}
if ! command -v nix-env &>/dev/null; then
echo "warning: nix-env was not found in PATH, add nix to userPackages" >&2
PATH=${self.nix}/bin:$PATH
fi
exec nix-env -f '<nixpkgs>' -r -iA userPackages "$@"
'';
};
}
❯ nix-shell ./nix/wabt.nix --run "bash" --verbose
evaluating file '/nix/store/agq9zq79m9yys2yli2vr0c999rfrg13h-nix-2.1.3/share/nix/corepkgs/derivation.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/minver.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/impure.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/stdenv/booter.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/fixed-points.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/lists.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/stdenv/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/systems/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/attrsets.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/systems/inspect.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/trivial.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/systems/parse.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/strings.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/types.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/options.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/systems/platforms.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/stdenv/darwin/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/stage.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/stdenv/adapters.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/build-support/trivial-builders.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/splice.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/all-packages.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/top-level/aliases.nix'
evaluating file '/Users/nickjohnstone/.config/nixpkgs/overlays/nick.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/pkgs/stdenv/generic/default.nix'
evaluating file '/nix/store/xcbrp98b95bdwqbd68kxcsagrdl8pq84-nixpkgs-19.03pre165281.7d864c6bd63/nixpkgs/lib/customisation.nix'
error: i686 Linux package set can only be used with the x86 family.
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
self.stdenv.mkDerivation {
name = "wabt";
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "wabt";
rev = "71ce746f1be4290b8d20449ff35b852b5cc374d2";
sha256 = "0szkr01vdigs3h68qnfzhcl385394b4cfbdd14s3hkk7jm61z0a2";
};
nativeBuildInputs = [ cmake python ];
enableParallelBuilding = true;
cmakeFlags = ["-DBUILD_TESTS=OFF"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment