mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 07:04:25 +00:00
treewide: source .attrs in builders
if theres a source $stdenv then this is needed for structuredAttrs
This commit is contained in:
parent
bb914d8676
commit
c01f509e44
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
doSub() {
|
doSub() {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
echo "unpacking $src..."
|
echo "unpacking $src..."
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
tar --extract --file=$src libreoffice-$version/download.lst -O > $out
|
tar --extract --file=$src libreoffice-$version/download.lst -O > $out
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source "$stdenv/setup"
|
source "$stdenv/setup"
|
||||||
|
|
||||||
header "exporting \`$url' (revision $rev) into \`$out'"
|
header "exporting \`$url' (revision $rev) into \`$out'"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
(echo "#!$SHELL"; \
|
(echo "#!$SHELL"; \
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
tagtext=""
|
tagtext=""
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source "${stdenv}/setup"
|
source "${stdenv}/setup"
|
||||||
header "exporting ${repository}/${imageName} (tag: ${tag}) into ${out}"
|
header "exporting ${repository}/${imageName} (tag: ${tag}) into ${out}"
|
||||||
mkdir -p "${out}"
|
mkdir -p "${out}"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
header "Cloning Fossil $url [$rev] into $out"
|
header "Cloning Fossil $url [$rev] into $out"
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# - no revision specified and remote has a HEAD which is used
|
# - no revision specified and remote has a HEAD which is used
|
||||||
# - revision specified and remote has a HEAD
|
# - revision specified and remote has a HEAD
|
||||||
# - revision specified and remote without HEAD
|
# - revision specified and remote without HEAD
|
||||||
|
#
|
||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting $url (rev $rev) into $out"
|
header "exporting $url (rev $rev) into $out"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
header "getting $url${rev:+ ($rev)} into $out"
|
header "getting $url${rev:+ ($rev)} into $out"
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
# Curl flags to handle redirects, not use EPSV, handle cookies for
|
# Curl flags to handle redirects, not use EPSV, handle cookies for
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting $url (r$rev) into $out"
|
header "exporting $url (r$rev) into $out"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting $url (r$rev) into $out"
|
header "exporting $url (r$rev) into $out"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
source $mirrorsFile
|
source $mirrorsFile
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
preConfigure() {
|
preConfigure() {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
export JAVA_HOME=$jre
|
export JAVA_HOME=$jre
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting egg ${eggName} (version $version) into $out"
|
header "exporting egg ${eggName} (version $version) into $out"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting egg ${eggName} (version $version) into $out"
|
header "exporting egg ${eggName} (version $version) into $out"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
pkgdir=$(pwd)/pkg
|
pkgdir=$(pwd)/pkg
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
tar xf $src
|
tar xf $src
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# -*- shell-script -*-
|
# -*- shell-script -*-
|
||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
function extract
|
function extract
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
configureFlags="-prefix $out $configureFlags"
|
configureFlags="-prefix $out $configureFlags"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
# Glibc cannot have itself in its RPATH.
|
# Glibc cannot have itself in its RPATH.
|
||||||
export NIX_NO_SELF_RPATH=1
|
export NIX_NO_SELF_RPATH=1
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
genericBuild
|
genericBuild
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
mkdir unzipped
|
mkdir unzipped
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
export HOME=$NIX_BUILD_TOP
|
export HOME=$NIX_BUILD_TOP
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
if [ -f .attrs.sh ]; then
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
. .attrs.sh
|
|
||||||
fi
|
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/perl5/site_perl"
|
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/perl5/site_perl"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
unpackPhase
|
unpackPhase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
boot_bin=$out/bin/boot
|
boot_bin=$out/bin/boot
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
# Wrap the given `aclocal' program, appending extra `-I' flags
|
# Wrap the given `aclocal' program, appending extra `-I' flags
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
tar zxvf $src
|
tar zxvf $src
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
unpackManually() {
|
unpackManually() {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
unzip $src
|
unzip $src
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
# This is the builder for all X.org components.
|
# This is the builder for all X.org components.
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
export NIX_DEBUG=1
|
export NIX_DEBUG=1
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Prepare a makefile specifying the appropriate output directories.
|
# Prepare a makefile specifying the appropriate output directories.
|
||||||
#
|
#
|
||||||
# Written by Ludovic Courtès <ludo@gnu.org>.
|
# Written by Ludovic Courtès <ludo@gnu.org>.
|
||||||
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
||||||
|
|
||||||
source "$stdenv/setup" || exit 1
|
source "$stdenv/setup" || exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user