nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 12 lines 516 B view raw
1#!/usr/bin/env bash 2set -eu -o pipefail 3cd "$( dirname "${BASH_SOURCE[0]}" )" 4node2nix=$(nix-build ../../.. -A nodePackages.node2nix) 5rm -f ./node-env.nix 6${node2nix}/bin/node2nix -i node-packages.json -o node-packages.nix -c composition.nix 7# using --no-out-link in nix-build argument would cause the 8# gc to run before the script finishes 9# which would cause a failure 10# it's safer to just remove the link after the script finishes 11# see https://github.com/NixOS/nixpkgs/issues/112846 for more details 12rm ./result