Skip to content

Instantly share code, notes, and snippets.

@sheeldotme
Last active April 23, 2019 19:19
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 sheeldotme/19903a8ea75331a8dc647819e3c82be6 to your computer and use it in GitHub Desktop.
Save sheeldotme/19903a8ea75331a8dc647819e3c82be6 to your computer and use it in GitHub Desktop.
Nix Setup
{ pkgs ? import <nixpkgs> {} }:
pkgs.llvmPackages_7.stdenv.mkDerivation {
name = "json-casa";
src = ./.;
nativeBuildInputs = [ pkgs.cmake pkgs.ninja ];
unpackPhase = ''
cp -r $src/source/* .;
'';
}
let
pkgs = import <nixpkgs> {};
derivation = import ./default.nix {};
in
pkgs.mkShell.override { stdenv = pkgs.llvmPackages_7.stdenv; } {
inputsFrom = [ derivation ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment