[Nix-dev] fetchurl with executable bit?

Domen Kožar domen at dev.si
Tue Jan 19 11:19:21 CET 2016


Thanks: https://github.com/NixOS/nixpkgs/pull/12469

On Tue, Jan 19, 2016 at 11:01 AM, Eelco Dolstra <eelco.dolstra at logicblox.com
> wrote:

> Hi,
>
> On 18/01/16 21:04, Domen Kožar wrote:
>
> > I've tried, but Nix doesn't allow setting executable bit:
> >
> > output path ‘/nix/store/h873wjrmvzx73di88b85mqm255gvjnng-blash.sh’
> should be a
> > non-executable regular file
>
> Try passing
>
>   recursiveHash = true;
>
> to fetchurl. Otherwise outputHashMode will be "flat" and that only allows
> non-executable files.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160119/2a1d611c/attachment.html 


More information about the nix-dev mailing list