Merge pull request #341 from samueldr/feature/execable-outpathsnix

outpaths.nix: Makes callable
This commit is contained in:
Graham Christensen 2019-04-21 21:01:34 -04:00 committed by GitHub
commit 6229ec335c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
ofborg/src/outpaths.nix Normal file → Executable file
View file

@ -1,7 +1,12 @@
{ checkMeta }: #!/usr/bin/env nix-shell
# When using as a callable script, passing `--argstr path some/path` overrides $PWD.
#!nix-shell -p nix -i "nix-env -qaP --no-name --out-path --arg checkMeta true --argstr path $PWD -f"
{ checkMeta
, path ? ./.
}:
let let
lib = import ./lib; lib = import (path + "/lib");
hydraJobs = import ./pkgs/top-level/release.nix hydraJobs = import (path + "/pkgs/top-level/release.nix")
# Compromise: accuracy vs. resources needed for evaluation. # Compromise: accuracy vs. resources needed for evaluation.
{ {
supportedSystems = [ supportedSystems = [