Skip to content

Instantly share code, notes, and snippets.

@lukego
Created April 25, 2016 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukego/854673407f5f7579c27e23145c1d2b80 to your computer and use it in GitHub Desktop.
Save lukego/854673407f5f7579c27e23145c1d2b80 to your computer and use it in GitHub Desktop.
nix expression to test Snabb compilation on very many Linux distros
{ snabbSrc ? (builtins.fetchTarball https://github.com/snabbco/snabb/tarball/master) }:
with import <nixpkgs> {};
with lib;
with vmTools;
let snabb = stdenv.mkDerivation rec {
name = "snabb";
src = snabbSrc;
}; in
mapAttrs (name: image: runInLinuxImage (snabb // { diskImage = image; }))
diskImages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment