Thanks, I added --pure to nix-shell, but the result didn't change. The only difference in the environment variables which are set for nix-build and nix-shell is that nix-build contains the following:
declare -x NIX_ENFORCE_PURITY="1" declare -x NIX_INDENT_MAKE="1" declare -x TZ="UTC" In nix-build libtoolize misses the following actions: libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' and therefore autoreconf fails with configure.ac:10: error: required file './ltmain.sh' not found autoreconf: automake failed with exit status: 1 Is it NIX_ENFORCE_PURITY which is causing that difference? If so what would you recommend me to do? Many thanks for your help! Thomas On 06/15/2014 05:42 AM, Kirill Elagin wrote: > Have you tried it with `nix-shell --pure`? > > > -- > Кирилл Елагин > > > On Sun, Jun 15, 2014 at 5:01 AM, Thomas Strobel <ts...@cam.ac.uk > <mailto:ts...@cam.ac.uk>> wrote: > > Hi! > > I'm trying to write a nix-expression for current hydra, see below. It > works within nix-shell, but fails with nix-build, both on 14.04. > Could someone maybe help me with that, please? > > Many thanks, > Thomas > > > > hydra.nix > ======================================== > > { stdenv, fetchgit, pkgs }: > with pkgs; > let > nixpkgs = pkgs; > version = "0.17"; > > nix = pkgs.nixUnstable; > > perlDeps = pkgs.buildEnv { > name = "hydra-perl-deps"; > paths = with perlPackages; > [ ModulePluggable > CatalystAuthenticationStoreDBIxClass > CatalystDispatchTypeRegex > CatalystPluginAccessLog > CatalystPluginAuthorizationRoles > CatalystPluginCaptcha > CatalystPluginSessionStateCookie > CatalystPluginSessionStoreFastMmap > CatalystPluginStackTrace > CatalystPluginUnicodeEncoding > CatalystTraitForRequestProxyBase > CatalystViewDownload > CatalystViewJSON > CatalystViewTT > CatalystXScriptServerStarman > CatalystActionREST > CryptRandPasswd > DBDPg > DBDSQLite > DataDump > DateTime > DigestSHA1 > EmailSender > FileSlurp > LWP > LWPProtocolHttps > IOCompress > IPCRun > JSONXS > PadWalker > CatalystDevel > Readonly > SetScalar > SQLSplitStatement > Starman > SysHostnameLong > TestMore > TextDiff > TextTable > XMLSimple > NetAmazonS3 > nix git > ]; > }; > in > > stdenv.mkDerivation rec { > name = "hydra-${version}"; > > src = fetchgit { > url = "https://github.com/NixOS/hydra.git"; > rev = "91f895b3d660560e40278b1c4e8c50172f3ac065"; > sha256 = > "71954b6a3f6037b75698f6c7262cf0f97442bb5af8c5d31e543479ae8eee8f7a"; > }; > > > preConfigure = '' > # TeX needs a writable font cache. > export VARTEXFONTS=$TMPDIR/texfonts > > addToSearchPath PATH $(pwd)/src/script > addToSearchPath PATH $(pwd)/src/c > addToSearchPath PERL5LIB $(pwd)/src/lib > > ./bootstrap > ''; > > configureFlags = ["--with-nix=${nix}" > "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ]; > > buildInputs = > [ makeWrapper libtool unzip nukeReferences pkgconfig boehmgc > sqlite > gitAndTools.topGit mercurial darcs subversion bazaar openssl > bzip2 > guile perlDeps perl > autoconf automake libtool libxslt dblatex tetex > ]; > > hydraPath = lib.makeSearchPath "bin" ( > [ libxslt sqlite subversion openssh nix coreutils findutils > gzip bzip2 lzma gnutar unzip git gitAndTools.topGit mercurial > darcs gnused graphviz bazaar > ] ++ lib.optionals stdenv.isLinux [ rpm dpkg cdrkit ] ); > > preCheck = '' > patchShebangs . > export LOGNAME=${LOGNAME:-foo} > ''; > > postInstall = '' > mkdir -p $out/nix-support > nuke-refs $out/share/doc/hydra/manual/manual.pdf > > for i in $out/bin/*; do > wrapProgram $i \ > --prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \ > --prefix PATH ':' $out/bin:$hydraPath \ > --set HYDRA_RELEASE ${version} \ > --set HYDRA_HOME $out/libexec/hydra \ > --set NIX_RELEASE ${nix.name <http://nix.name>} > done > ''; # */ > > meta.description = "Build of Hydra on ${system}"; > passthru.perlDeps = perlDeps; > } > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl <mailto:nix-dev@lists.science.uu.nl> > http://lists.science.uu.nl/mailman/listinfo/nix-dev > >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev