mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
7f38087f35
This command builds or fetches all dependencies of the given derivation, then starts a shell with the environment variables from the derivation. This shell also sources $stdenv/setup to initialise the environment further. The current directory is not changed. Thus this is a convenient way to reproduce a build environment in an existing working tree. Existing environment variables are left untouched (unless the derivation overrides them). As a special hack, the original value of $PATH is appended to the $PATH produced by $stdenv/setup. Example session: $ nix-build --run-env '<nixpkgs>' -A xterm (the dependencies of xterm are built/fetched...) $ tar xf $src $ ./configure $ make $ emacs (... hack source ...) $ make $ ./xterm
28 lines
535 B
Perl
28 lines
535 B
Perl
package Nix::Store;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
require Exporter;
|
|
|
|
our @ISA = qw(Exporter);
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
|
|
|
|
our @EXPORT = qw(
|
|
isValidPath queryReferences queryPathInfo queryDeriver queryPathHash
|
|
topoSortPaths computeFSClosure followLinksToStorePath exportPaths
|
|
hashPath hashFile hashString
|
|
addToStore makeFixedOutputPath
|
|
derivationFromPath
|
|
);
|
|
|
|
our $VERSION = '0.15';
|
|
|
|
require XSLoader;
|
|
XSLoader::load('Nix::Store', $VERSION);
|
|
|
|
1;
|
|
__END__
|