Thanks: https://github.com/NixOS/nixpkgs/pull/12469
On Tue, Jan 19, 2016 at 11:01 AM, Eelco Dolstra 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
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
Hi all,
I'd like to have a function that fetches a script from the url and stores
it as an executable.
Currently fetchurl doesn't support chmod:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/default.nix
My current workaround is to do:
pkgs.writeScript "foobar"
aszlig pointed out:
postFetch = "chmod +x '$out'";
On Mon, Jan 18, 2016 at 7:46 PM, Domen Kožar wrote:
> Hi all,
>
> I'd like to have a function that fetches a script from the url and stores
> it as an executable.
>
> Currently fetchurl doesn't support chmod:
>
https://github.com/NixOS/nix/blob/master/corepkgs/fetchurl.nix has an
option to set executable. Maybe these should be consolidated.
On Mon, Jan 18, 2016 at 10:56 AM Domen Kožar wrote:
> aszlig pointed out:
>
>postFetch = "chmod +x '$out'";
>
>
>
> On Mon, Jan 18, 2016 at 7:46
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
On Mon, Jan 18, 2016 at 8:03 PM, William Kennington wrote:
>
On 01/18/2016 09:04 PM, 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
Huh, that's a surprise for me. I wonder why.
Anyway, if it's put into a