[Nix-dev] Building upstream nixops (to include in another project) fails

Maarten Hoogendoorn maarten at moretea.nl
Wed Jun 29 16:06:46 CEST 2016


2016-06-29 16:06 GMT+02:00 Maarten Hoogendoorn <maarten at moretea.nl>:

> Yes, I looked at the ./dev-shell.sh file on which attribute I should
> depend on.
>
> I want to have a nix-shell with both a custom version of nixops, and some
> other packages.
>
> My other approach does not work either, but with a more interesting error
> message:
>
> $ nix-shell --show-trace
> these derivations will be built:
>
> /nix/store/r1p3m87criwffxwn2is5a06qlrxyrbjj-nixops-tarball-1.4pre0_abcdef.drv
>   /nix/store/ap23fcb9jqg4h5fifsbawys7bvk1a5mz-nixops-1.4pre0_abcdef.drv
> building path(s)
> ‘/nix/store/1xb0f4jcivcg7fxpb4605hi55cm9j12l-nixops-tarball-1.4pre0_abcdef’
> unpacking sources
> unpacking source archive /nix/store/hixjn9gi008bqwlakmnwqpci2rc7x4jb-nixops
> *do not know how to unpack source archive
> /nix/store/hixjn9gi008bqwlakmnwqpci2rc7x4jb-nixops*
> build time elapsed:  0m0.032s 0m0.008s 0m0.000s 0m0.002s
> builder for
> ‘/nix/store/r1p3m87criwffxwn2is5a06qlrxyrbjj-nixops-tarball-1.4pre0_abcdef.drv’
> failed with exit code 1
> cannot build derivation
> ‘/nix/store/ap23fcb9jqg4h5fifsbawys7bvk1a5mz-nixops-1.4pre0_abcdef.drv’: 1
> dependencies couldn't be built
> error: build of
> ‘/nix/store/ap23fcb9jqg4h5fifsbawys7bvk1a5mz-nixops-1.4pre0_abcdef.drv’
> failed
> /run/current-system/sw/bin/nix-shell: failed to build all dependencies
>
>
> Expression:
>
> let
>   pkgs = import <nixpkgs> {};
>   stdenv = pkgs.stdenv;
>   custom_nixops = (import ./nixops/release.nix {}).build.x86_64-linux;
>
>   env = stdenv.mkDerivation rec {
>     name = "noez";
>     src = ./.;
>     buildInputs = with pkgs; [ ruby custom_nixops ];
>   };
> in
>   env
>
>
>
> 2016-06-29 14:20 GMT+02:00 Domen Kožar <domen at dev.si>:
>
>> You have build nixops using release.nix, which populates the _version_
>> string
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160629/9d59e805/attachment-0001.html>


More information about the nix-dev mailing list