[Nix-dev] Fwd: Re: Displaying package parameters

2016-02-28 Thread Fabian Schmitthenner
huh? what's the problem? To be clear, when clicking on a package, some parameters will be shown, e. g. asciidoc, qtbase.base have quite some parameters. For some packages, "error" "some error happened" is displayed, that means that the parameters couldn't be determined because callPackage wasn't

[Nix-dev] Displaying package parameters

2016-02-28 Thread Fabian Schmitthenner
Hi! I just wanted to share that I tried displaying package parameters on the nixos homepage and the current result can be seen here: http://schmitthenner.eu/nixos-homepage/nixos/packages.html. When you click on a package, you hopefully see its parameter. This uses a heruristic to try to figure

[Nix-dev] new tool: nixos-typecheck

2016-02-28 Thread Thomas Strobel
Hi! There is the new tool "nixos-typecheck" available in NixOS (currently in master only) that is meant help us to keep the options of our nixos module system well defined. In particular, "nixos-typecheck" can check whether a type attribute is defined for the options of the module system, and

Re: [Nix-dev] NixOS 16.03 branch-off time in 10 days

2016-02-28 Thread Domen Kožar
Done: https://github.com/NixOS/nixpkgs/tree/release-16.03 Please. for any major version bumps or changes breaking, open a PR and tag @domenkozar for review. On Sat, Feb 27, 2016 at 10:12 AM, Domen Kožar wrote: > Tomorrow is the branch off day, time to merge last sneaky changes. >

Re: [Nix-dev] NixON initiative

2016-02-28 Thread zimbatm
Interesting how much traffic this thread has. If we have importJSON I suppose that we could then output JSON from all of our tooling. It should also make it easier to get the output from any modern language. In that case I will make some changes so that nix-prefetch-git outputs JSON by default

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Moritz Ulrich
zimbatm writes: > ``` > $ nix-prefetch-git git://github.com/direnv/direnv.git 2>/dev/null | tee > repo.nix > { > url = "git://github.com/direnv/direnv.git"; > rev = "9283a67646349bfef002a7242db47a6b8ef75305"; > sha256 =

Re: [Nix-dev] NixON initiative

2016-02-28 Thread zimbatm
So something like that ? https://github.com/NixOS/nixpkgs/pull/13552 And then we would convert all of our tooling to output JSON ? On Sun, 28 Feb 2016 at 16:43 Anand Patil wrote: > You could interpret {path: "/a/b/c"} as a path literal. > > On Sun, Feb 28, 2016,

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Anand Patil
You could interpret {path: "/a/b/c"} as a path literal. On Sun, Feb 28, 2016, 11:06 AM zimbatm wrote: > But we wouldn’t have the path type in JSON anymore ! Hmm maybe that’s a > good thing actually :p > > importJSON = path: builtins.fromJSON (builtins.readFile path); > > ​

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Daniel Peebles
You mean you don't like naming it after everyone's favorite US president? :) > On Feb 28, 2016, at 09:54, deCube.net | Danny Wilson wrote: > > How about NEON > > Nix Expression Object Notation > >> On 28 feb. 2016, at 15:49, stewart mackenzie wrote: >>

Re: [Nix-dev] NixON initiative

2016-02-28 Thread yacine.hmito
That would work with some kind of importJSON function, that will automatically convert a JSON into a valid Nix expression with literals. Original message From: jeaye Date: 28/02/2016 16:37 (GMT+01:00) To: Anand Patil

Re: [Nix-dev] NixON initiative

2016-02-28 Thread jeaye
On Sun, Feb 28, 2016 at 03:11:15PM +, Anand Patil wrote: > What about using some kind of JSON notation for this? There are some > mismatches between JSON and Nix primitives; but on the other hand JSON is > easy to parse and generate from every language, and many people are > familiar with it.

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Graham Christensen
> It should, most emphatically, that's the whole point! > > Stripping the Turing completeness with no remorse will open up a vast array > of options for data processing in the toolchain. > Yes, and what I meant is it would be very easy to start calling it NixON and start importing like

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Anand Patil
What about using some kind of JSON notation for this? There are some mismatches between JSON and Nix primitives; but on the other hand JSON is easy to parse and generate from every language, and many people are familiar with it. On Sun, Feb 28, 2016, 9:54 AM deCube.net | Danny Wilson

Re: [Nix-dev] NixON initiative

2016-02-28 Thread Graham Christensen
I think it is a great idea for these functions to return valid nix expressions, and to be able to directly write them to a file. I also really like the idea of creating a named subset only containing literal values. However... I disagree about calling it something special other than just a

Re: [Nix-dev] NixON initiative

2016-02-28 Thread deCube.net | Danny Wilson
How about NEON Nix Expression Object Notation On 28 feb. 2016, at 15:49, stewart mackenzie wrote: > Excellent idea, this removes quite a lot of manual steps. > > Recently wrote some dirty python scripts to automate the checking and > replacing of sha256s, this approach

Re: [Nix-dev] NixON initiative

2016-02-28 Thread stewart mackenzie
Excellent idea, this removes quite a lot of manual steps. Recently wrote some dirty python scripts to automate the checking and replacing of sha256s, this approach would make it trivial, reducing check times from about an hour and growing to mere seconds. Though, I do have a reservation about

Re: [Nix-dev] AppImage

2016-02-28 Thread Bjørn Forsman
On 28 February 2016 at 15:28, Bjørn Forsman wrote: > On 28 February 2016 at 15:07, Vladimír Čunát wrote: >> On 02/28/2016 02:59 PM, Bjørn Forsman wrote: >> Fetching expressions is something else than the author wants. >> Third-party binary packages for

[Nix-dev] [***SPAM***] Re: AppImage

2016-02-28 Thread Michael Raskin
>> BTW, I tried their Chromium AppImages and without success, at least on >> NixOS. So much for running on any Linux. >> $ /some/path/Chromium-50.0.2644.0-x86_64.AppImage >> -bash: /some/path/Chromium-50.0.2644.0-x86_64.AppImage: No such file or >> directory > >I experienced similar thing with

[Nix-dev] NixON initiative

2016-02-28 Thread zimbatm
No, not the dead president :) JavaScript has JSON and Nix has NixON. A subset of the language that only contains literal values. Thanks to Tim Cuthbertson (@gfxmonk) nix-prefetch-git now outputs valid NixON. Would it make sense to convert more of our tooling to using that notation forward ? The

Re: [Nix-dev] AppImage

2016-02-28 Thread Bjørn Forsman
On 28 February 2016 at 15:07, Vladimír Čunát wrote: > On 02/28/2016 02:59 PM, Bjørn Forsman wrote: >> On 28 February 2016 at 14:19, Domen Kožar wrote: >>> For your reading pleasue >>> https://github.com/probonopd/AppImageKit/wiki/Similar-projects#nix >> >> Seems

Re: [Nix-dev] AppImage

2016-02-28 Thread Vladimír Čunát
On 02/28/2016 02:59 PM, Bjørn Forsman wrote: > On 28 February 2016 at 14:19, Domen Kožar wrote: >> For your reading pleasue >> https://github.com/probonopd/AppImageKit/wiki/Similar-projects#nix > > Seems we need to (1) package Subsurface and (2) implement recursive > Nix(?) so that

Re: [Nix-dev] AppImage

2016-02-28 Thread Bjørn Forsman
On 28 February 2016 at 14:19, Domen Kožar wrote: > For your reading pleasue > https://github.com/probonopd/AppImageKit/wiki/Similar-projects#nix Seems we need to (1) package Subsurface and (2) implement recursive Nix(?) so that expressions can be fetched from upstream repos

Re: [Nix-dev] AppImage

2016-02-28 Thread Domen Kožar
For your reading pleasue https://github.com/probonopd/AppImageKit/wiki/Similar-projects#nix On Sun, Feb 28, 2016 at 9:26 AM, Vladimír Čunát wrote: > On 02/27/2016 11:33 PM, Eelco Dolstra wrote: > > On 27/02/16 15:28, Vladimír Čunát wrote: > >> The aims seem significantly

Re: [Nix-dev] --ftls-model=global-dynamic for every lib?

2016-02-28 Thread stewart mackenzie
Globin deserves a rather large amount of beers from me! Such fantastic work globin, looking forward to this PR landing! Thanks for the link Domen! I'll sleep like a well tonight. /sjm On 28 Feb 2016 18:33, "Domen Kožar" wrote: > > See

Re: [Nix-dev] --ftls-model=global-dynamic for every lib?

2016-02-28 Thread Adrien Devresse
Thx Domen, this is exactly what I was looking for. Le 28/02/2016 11:33, Domen Kožar a écrit : > See > https://github.com/NixOS/nixpkgs/pull/12895/files#diff-8ac87a75c3dd650a7f760fa3b2d041bfR239 > > On Sun, Feb 28, 2016 at 10:31 AM, Adrien Devresse >

Re: [Nix-dev] --ftls-model=global-dynamic for every lib?

2016-02-28 Thread Vladimír Čunát
On 02/28/2016 11:31 AM, Adrien Devresse wrote: > Most of the Linux distributions have a mandatory default set of flags > for all libraries / binaries that are enforced through "configure / > cmake" macros ( -fPIC is part of them ). The security flags are WIP here:

Re: [Nix-dev] --ftls-model=global-dynamic for every lib?

2016-02-28 Thread Domen Kožar
See https://github.com/NixOS/nixpkgs/pull/12895/files#diff-8ac87a75c3dd650a7f760fa3b2d041bfR239 On Sun, Feb 28, 2016 at 10:31 AM, Adrien Devresse wrote: > To generalize a bit on this. > > Most of the Linux distributions have a mandatory default set of flags > for all libraries /

Re: [Nix-dev] --ftls-model=global-dynamic for every lib?

2016-02-28 Thread Adrien Devresse
To generalize a bit on this. Most of the Linux distributions have a mandatory default set of flags for all libraries / binaries that are enforced through "configure / cmake" macros ( -fPIC is part of them ). They do this for very good reasons: security, protability, compatibility. It would be

Re: [Nix-dev] AppImage

2016-02-28 Thread Vladimír Čunát
On 02/27/2016 11:33 PM, Eelco Dolstra wrote: > On 27/02/16 15:28, Vladimír Čunát wrote: >> The aims seem significantly different. Appimage and many others >> evidently focus on creating bundles that "just work" everywhere. That >> was never among the (main) objectives of Nix, although you can make

[Nix-dev] Small Channel Binaries

2016-02-28 Thread Roger Qiu
Hi all, If the small channels contain less binaries in the binary cache. Is there a way to find out which binaries are available in the small channel compared to the normal channel, and compare between them? -- Founder of Matrix AI https://matrix.ai/ +61420925975