Skip to content

Instantly share code, notes, and snippets.

@patrl
Last active July 17, 2018 12:04
Show Gist options
  • Save patrl/4ad338ff2bad62459b3e238a24bcd505 to your computer and use it in GitHub Desktop.
Save patrl/4ad338ff2bad62459b3e238a24bcd505 to your computer and use it in GitHub Desktop.
Building scuttlebot on NixOS

Building scuttlebot on NixOS

  • Clone the scuttlebot source from GitHub.
  • cd into the source directory and run node2nix.
  • Create a new file in the source directory override.nix with the following contents:
    {pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem}:
    
    let
      nodePackages = import ./default.nix {
        inherit pkgs system;
      };
    in
    nodePackages // {
      package = nodePackages.package.override {
        buildInputs = [ pkgs.automake pkgs.autoconf pkgs.nodePackages.node-gyp-build ];
      };
    }
        
  • In the source dir run nix-build override.nix -A package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment