Skip to content

Instantly share code, notes, and snippets.

@matejc
Created October 22, 2016 23:35
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 matejc/9d1b6256763c76e45daf20c622c2f703 to your computer and use it in GitHub Desktop.
Save matejc/9d1b6256763c76e45daf20c622c2f703 to your computer and use it in GitHub Desktop.
nix-lib
nix.set('runme', 'nixpkgs', "https://github.com/matejc/nixpkgs#mylocal57")
.then(function(){
// return nix.set('runme', 'scripts', 'https://github.com/matejc/hydra_scripts#master');
return nix.set('runme', 'scripts', '/home/matejc/workarea/nix-lib/test/data');
})
.then(function(){
return nix.set('runme', 'buildScript', 'runme.nix');
})
.then(function(){
return nix.set('runme', 'attrs', ['pkgs.zsh']);
})
.then(function(){
return nix.set('runme', 'supportedSystems', ['x86_64-linux']);
})
.then(function(){
return nix.getProfile('runme', 'pretty');
})
.then(function(out){
console.log(out)
})
.then(function(){
return nix.buildProfile('runme');
})
.then(function(out){
console.log(`Success, out path: ${out}`)
})
.catch(function(err) {
console.error(err.stack||err);
console.error('ERROR');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment