[Nix-dev] builder for ‘*.drv’ failed to produce output path ‘*’
Tomasz Kontusz
tomasz.kontusz at gmail.com
Sun Dec 13 23:46:41 CET 2015
You need to create $out in your builder. Just "cp -r ./build $out" after
the "make pgloader" will be a good start - at least you'll see if it's
usable :-)
On 13.12.2015 23:39, Tinker wrote:
> Hi
>
> I'm trying to write a nix package for pgloader (a db migration tool
> written by someone else and can be found at
> https://github.com/dimitri/pgloader).
>
> When I run it as `nix-build -A pgloader` then I get:
>
> builder for ‘/nix/store/gz38vqm47i0vfyiqdz6qmqyx7ywprji5-pgloader-3.2.2.drv’
> failed to produce output path
> ‘/nix/store/v5ya763xia00lp40yx6z5c0h6l1cvla2-pgloader-3.2.2’
> error: build of
> ‘/nix/store/gz38vqm47i0vfyiqdz6qmqyx7ywprji5-pgloader-3.2.2.drv’
> failed
>
> I'm trying to figure out what it means but maybe someone can already
> shed a light?
>
> The package does not have a 'make install', is that why it's
> complaining out the missing output path?
> What would be the way forward given I don't own the source of the
> utility itself?
>
> default.nix (other comments welcome as well):
> ===
> { stdenv, fetchurl, sbcl, unzip, curl, git, openssl, sqlite, freetds,
> lispPackages, cacert }:
>
> stdenv.mkDerivation {
> name = "pgloader-3.2.2";
> buildInputs = [ sbcl unzip curl git openssl sqlite freetds
> lispPackages.cl-ssl cacert ];
> LD_LIBRARY_PATH="${lispPackages.cl-ssl}/lib:${openssl}/lib:${sqlite}/lib:${freetds}/lib";
> SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt;
> CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt;
>
> builder = builtins.toFile "builder.sh" "
> source $stdenv/setup
>
> PATH=$sbcl/bin:$PATH
>
> unzip $src
> cd pgloader-*
> sed -i 's/COMPRESS_CORE ?= yes/COMPRESS_CORE ?= no/' Makefile
> make COMPRESS_CORE=no pgloader
> ";
>
> src = fetchurl {
> url = https://github.com/dimitri/pgloader/archive/master.zip;
> md5 = "8b93075a1a5848a674101d90850dc90e";
> #url = https://github.com/dimitri/pgloader/archive/v3.2.2.zip;
> #md5 = "4d00eb55bf7dbea0a8e55248d2bbb96d";
> };
> inherit sbcl;
> }
> ===
>
> t
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list