Re: [Nix-dev] How to package FZF?
Homebrew took the approach of packaging the install and uninstall scripts themselves (for the user to run manually), as well as the fzf binary and the shell completion scripts. You might be able to borrow that idea. Due to the way the project is currently set up, I can't think of any more elegant solution. https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fzf.rb On Sat, Mar 7, 2015 at 8:22 AM, Matthias Beyer m...@beyermatthias.de wrote: Hi, I want to package fzf[0], but I don't know where to start. Help would be highly appreciated! The problem I'm facing: fzf comes with an extensive install script[1] - I'm sure I can't just run it while installing, as I guess it is also interactive and so on. Besides, fzf is a go/ruby package, and I'm not sure how to package it. Any pointers where to look at and how to start would be highly appreciated! (I already packaged some stuff for NixOS, so I know how to do the basic plumbing, just looking for suggestions on how to start with this particular piece of software) [0]: https://github.com/junegunn/fzf [1]: https://github.com/junegunn/fzf/blob/master/install PS: There is also an extensive uninstall-script, but I guess this does not matter that much for the first strike, does it? :-) -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] How to package FZF?
Hi, I want to package fzf[0], but I don't know where to start. Help would be highly appreciated! The problem I'm facing: fzf comes with an extensive install script[1] - I'm sure I can't just run it while installing, as I guess it is also interactive and so on. Besides, fzf is a go/ruby package, and I'm not sure how to package it. Any pointers where to look at and how to start would be highly appreciated! (I already packaged some stuff for NixOS, so I know how to do the basic plumbing, just looking for suggestions on how to start with this particular piece of software) [0]: https://github.com/junegunn/fzf [1]: https://github.com/junegunn/fzf/blob/master/install PS: There is also an extensive uninstall-script, but I guess this does not matter that much for the first strike, does it? :-) -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. pgpFAqJRTdUfp.pgp Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Bash completion makes bash startup awefully slow
This time to the list as well.. So, sorry for taking so long to reply, I've been rather busy. On 14-02-2015 11:54:51, Wout Mertens wrote: Err, can you quantify how slow bash starts up? It's something between 0.8 and 1.5 sec on my 8core 16GB ram machine. This is definitely too slow to work with, but keeping completion off is even worse for my workflow... Anyway, Marc Weber has been working on modular bash completion, see http://permalink.gmane.org/gmane.linux.distributions.nixos/15757 Maybe that should be part of NixOS. Would be nice to see this or something similar in NixOS, where one can select which stuff should be loaded as completion... -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. pgpS93gi6AXBi.pgp Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] How to add tools to a nix-shell environment for haskell development?
Yes, Rich, that's very helpful. Mike. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] How to add tools to a nix-shell environment for haskell development?
Hi, Peter, On Fri, Mar 6, 2015, at 07:42 AM, Peter Simons wrote: why don't you just add those tools into your user's profile? That's a reasonable question, with two answers: The short answer is that the examples I gave weren't the best, they were just what sorted first in my list of Haskell development tools---the ones I believe must be instantiated in that environment in order to work correctly are ghc-mod and hoogle, though I may need to add an additional wrapper somewhere to get a functioning hoogle. Or I might not, which is the segue to my second answer: I am actually uncertain that things will work properly if I just include them in my user profile. I mean, yeah, they seem to work in simple cases, but so does taffybar---until you configure it, at which point you find out that you really need to add that to your environment using ghcWithPackages, because otherwise it can't recompile itself. So I find myself taking a defensive posture regarding other haskell tools. I understand that NixOS presents a very different vision of the OS to tools that make various presumptions, which require various strategies to rectify---and I understand that there's always going to be some costs, but if the benefits outweigh them, I'm willing to bear them. I have spent years trying to maintain this sort of deterministic build-and-configuration setup on top of Debian, and a facsimile can largely be achieved, but it is a lot of work. Still, trying to realize those benefits has been elusive: * the documentation about how to resolve some of these things is scattered around, * much of the haskell documentation seems out of date in various ways (not addressing haskell-ng, referencing apparently-deprecated things like myEnvFun, etc), * much of the documentation that's not out of date presumes significant familiarity with nix and/or how things used to be done. * common uses cases in other environments seem unaddressed (presuming I'm going to run my editor inside each different nix-shell environment is very un-emacs) * you also get to learn not just a new language, but a complex, intertwingled system of software management Looking at this, perhaps the contribution I can attempt is to try and turn my experiences into something of a guide for this, though it's not something I would trust myself to do solo, because, well, I'm still at the madly-flailing stage. Mike. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] How to add tools to a nix-shell environment for haskell development?
Many thanks, Daniel, that's exactly the sort of thing I was looking for. Mike. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Haskell NG: let's update the wiki
The current Haskell package set will be removed in a few weeks: https://github.com/NixOS/nixpkgs/pull/6670#issuecomment-77688859 So it'd be nice to prepare the wiki. I've added a new section and a useful snippet: https://nixos.org/wiki/Haskell#Haskell_NG I cannot just paste the other code I've found due to copyright-related issues, so it needs to be done by the authors. Please help! signature.asc Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev