Re: [Nix-dev] environment.allowedLicenses ?

2015-01-27 Thread Wout Mertens
https://github.com/dmgerman/ninka is not really an easy solution... Perhaps an enterprising individual could integrate it with Nix so that it will propose licenses where missing and complains where licenses aren't correct (with warning squelch flag in the meta once an unclear license was

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-26 Thread Nathan Bijnens
I also prefer the current approach of meta.license = stdenv.lib.licenses.unfree, in some companies it's not always allowed to use some 'viral' licenses (the opposite case of license.unfree). N. --- nat...@nathan.gs | nathan.gs http://nathan.gs?utm_source=footerutm_medium=emailutm_campaign=n |

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-26 Thread Eelco Dolstra
Hi, On 26/01/15 14:19, Matthias Beyer wrote: On 26-01-2015 14:00:10, Eelco Dolstra wrote: Hm, I have the impression the license checking code is becoming pretty heavy at this point. For instance, what (realistically) is the use case for whitelisting? Whitelisting a non-free license.

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-26 Thread Nikita Karetnikov
I actually think we should *remove* meta.license entirely (because it doesn't provide useful info to users and tends to be wrong or incomplete anyway), and replace it with attributes that have operational meaning: People who do care about the exact license of a package should use a tool like

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-24 Thread Domen Kožar
Just anywhere in nixpkgs manual. There is no section that describes options for nixpkgs.config yet. On Sat, Jan 24, 2015 at 8:14 PM, Matthias Beyer m...@beyermatthias.de wrote: Hi guys. On 21-01-2015 20:56:44, Matthias Beyer wrote: Hi, today I heard that in Gentoo one has the ability to

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-24 Thread Matthias Beyer
Hi guys. On 21-01-2015 20:56:44, Matthias Beyer wrote: Hi, today I heard that in Gentoo one has the ability to specify licenses which are okay for the system and licenses which are blacklisted and packages with that licenses shouldn't be installed. Despite this is true for Gentoo or not,

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-24 Thread Matthias Beyer
On 24-01-2015 20:16:53, Domen Kožar wrote: Just anywhere in nixpkgs manual. There is no section that describes options for nixpkgs.config yet. I added one. How to build this documentation? -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-24 Thread Domen Kožar
See at the bottom of the manual On 24 Jan 2015 20:39, Matthias Beyer m...@beyermatthias.de wrote: On 24-01-2015 20:16:53, Domen Kožar wrote: Just anywhere in nixpkgs manual. There is no section that describes options for nixpkgs.config yet. I added one. How to build this

[Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Matthias Beyer
Hi, today I heard that in Gentoo one has the ability to specify licenses which are okay for the system and licenses which are blacklisted and packages with that licenses shouldn't be installed. Despite this is true for Gentoo or not, this would be a really cool feature for NixOS and I think a

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Matthias Beyer
On 21-01-2015 21:21:04, Domen Kožar wrote: We have a way to do that already, but it's not documented:A https://github.com/NixOS/nixpkgs/issues/4389 If someone would document it, that would rock :-) Just found that in the code. I don't think this is actually the same. With this

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Shea Levy
My only interest in this is ensuring that there’s a single switch to be able to say “install whatever I ask for”, in general though this sounds like a good idea. On Jan 21, 2015, at 8:15 PM, Matthias Beyer m...@beyermatthias.de wrote: On 21-01-2015 21:08:14, Jascha Geerds wrote: Hi, On

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Matthias Beyer
I just opened a PR for this: https://github.com/NixOS/nixpkgs/pull/5892 Please review calmly (I'm a nix-newbie) and tell me what to improve and what you think about it. I will add appropriate documentation in the PR + in the wiki if you guys like this. On 21-01-2015 21:35:49, Domen Kožar

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Domen Kožar
We have a way to do that already, but it's not documented: https://github.com/NixOS/nixpkgs/issues/4389 If someone would document it, that would rock :-) On Wed, Jan 21, 2015 at 9:16 PM, Shea Levy s...@shealevy.com wrote: My only interest in this is ensuring that there’s a single switch to be

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Jascha Geerds
Hi, On Wed, Jan 21, 2015, at 20:56, Matthias Beyer wrote: Is this possible with Nix(OS)? If yes, would you guys like such a feature? If yes,... maybe I can implement it (with enough guidance, though)... Yes, I think this should be possible in Nix NixOS. Pretty good idea! -- Jascha Geerds

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Matthias Beyer
On 21-01-2015 21:08:14, Jascha Geerds wrote: Hi, On Wed, Jan 21, 2015, at 20:56, Matthias Beyer wrote: Is this possible with Nix(OS)? If yes, would you guys like such a feature? If yes,... maybe I can implement it (with enough guidance, though)... Yes, I think this should be possible

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Domen Kožar
Well, that function could be looking at license strings and allowing such packages with very little code. Could be a NixOS module setting indeed. On Wed, Jan 21, 2015 at 9:25 PM, Matthias Beyer m...@beyermatthias.de wrote: On 21-01-2015 21:21:04, Domen Kožar wrote: We have a way to do that

Re: [Nix-dev] environment.allowedLicenses ?

2015-01-21 Thread Anderson Torres
Another thing to do in the same spirit is to run Linux libre kernel, as an extreme test case: http://www.fsfla.org/ikiwiki/selibre/linux-libre/ 2015-01-21 18:46 GMT-02:00 Matthias Beyer m...@beyermatthias.de: I just opened a PR for this: https://github.com/NixOS/nixpkgs/pull/5892 Please