Created
October 22, 2016 23:35
-
-
Save matejc/9d1b6256763c76e45daf20c622c2f703 to your computer and use it in GitHub Desktop.
nix-lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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