Re: [Nix-dev] Haskell-env (via nix-shell) - am I doing this right?
Re-Send to ML: On 24-05-2015 21:41:47, Matthias Beyer wrote: Hi Peter, On 24-05-2015 17:09:21, Peter Simons wrote: The following message is a courtesy copy of an article that has been posted to gmane.linux.distributions.nixos as well. Hi Matthias, $ cabal build Building ratehs-0.1... Preprocessing executable 'ratehs' for ratehs-0.1... command line: cannot satisfy -package-id snap-0.14.0.2-ef658c66823be8387d049aa89445f690: snap-0.14.0.2-ef658c66823be8387d049aa89445f690 is unusable due to missing or recursive dependencies: clientsession-0.9.1.1-f379c9ed2e350715ba6cdc20d73894b3 (use -v for more information) Do you have an idea how I can fix this? this issue is described in https://github.com/NixOS/nixpkgs/issues/7792. Instructions how to recover from this problem are in this thread. The short version is: garbage collect haskell-clientsession and all its dependents, then download those packages from scratch (or build them locally with --option build-use-substitutes false. Anyway, the ticket has more information on this subject. Thanks for posting this. Unfortunately I don't understand how to garbage collect haskell-clientsession and all its dependents How to do that? I've read the linked issue but I don't get any smarter by reading it! I just tried to nix-collect-garbage and after that re-building everything by simply doing nix-shell and entering the environment, but the error still happens, so I guess that's not the way how to do it, right? I did nix-store --delete on the store path of haskell-clientsession. as Peter suggested in a private mail then. But my problem is still: I ran for n in $(find /nix/store -name *haskell-clientsession* -maxdepth 1); do nix-store --delete $n; done but it still tells me: finding garbage collector roots... error: cannot delete path ‘/nix/store/pqj35vwax89ljdhcca02a330ii4zzhiw-haskell-clientsession-0.9.1.1.drv’ since it is still alive 0 store paths deleted, 0.00 MiB freed Can you tell how to fix this? -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. pgpSTLVVVrndf.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] stuck with fresh install on macbook pro
Here's the configuration I used for getting NixOS + XMonad to work on a mid-2012 MBP 13. Hope this helps! ``` { config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; boot.initrd.kernelModules = [ fbcon hid_apple ]; boot.initrd.luks.devices = [ { name = system; device = /dev/sda4; preLVM = true; } ]; boot.kernelPackages = pkgs.linuxPackages_3_14; boot.loader.gummiboot.enable = true; boot.loader.gummiboot.timeout = 5; boot.loader.efi.canTouchEfiVariables = true; fonts = { enableFontDir = true; enableGhostscriptFonts = true; fonts = with pkgs; [ inconsolata ]; }; nixpkgs.config.allowUnfree = true; networking.hostName = nixos; networking.wireless.enable = true; i18n = { consoleFont = lat9w-16; consoleKeyMap = de; defaultLocale = en_DK.UTF-8; }; environment.systemPackages = with pkgs; [ openssl vim wget ]; powerManagement.enable = true; programs.zsh.enable = true; security.sudo.enable = true; services = { xserver = { autorun = true; desktopManager = { default = none; xterm.enable = false; }; enable = true; layout = de; multitouch.enable = true; windowManager = { default = xmonad; xmonad.enable = true; }; xkbOptions = eurosign:e; }; }; users = { defaultUserShell = /run/current-system/sw/bin/zsh; extraUsers = { user = { name = user; group = wheel; uid = 1000; home = /home/user; createHome = true; passwordFile = /etc/nixos/passwords/user; useDefaultShell = true; }; }; mutableUsers = false; }; } ``` Am 25.05.2015 um 02:32 schrieb Tobias Pflug tobias.pf...@gmx.net: Hi, i just finished installing nixos on my 15 macbook pro retina. The installation went through without any specific problems and I booted into the system just fine - The problem now is I can't get X to work for some reason - X seemed to work just fine during installation. When I realized that no X session would start automatically I tried calling X manually. I uploaded the log output from X along with my nixos configuration files : https://gist.github.com/gilligan/c111210f6e357471dd5d It seems to be complaining that it cannot load module intel because it does not exist. I did specify intel in services.xserver.videoDrivers however. Is there anything else I need to be doing besides that ? Very thankful for any help on this. best regards, Tobi ___ 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] /dev/vboxdrv operation not permitted
% nixops deploy -d myvbox -- Kernel driver not accesible -- strace shows Operation not permitted on /dev/vboxdrv I freshly logged in, even rebooted _a_couple_of_times_ by now (for other reasons: % groups cfl wheel audio cdrom video vboxusers kvm nixtest % ls -l /dev/vboxdrv crw-rw 1 root vboxusers 10, 58 May 25 15:03 /dev/vboxdrv % cat /dev/vboxdrv cat: /dev/vboxdrv: Operation not permitted % sudo cat /dev/vboxdrv cat: /dev/vboxdrv: Invalid argument(Good!) % ls -l /tmp/foo -rw-rw 1 root vboxusers 0 May 25 15:33 /tmp/foo % cat /tmp/foo foo % sudo nixops deploy -d myvbox -- works What is going on? -- Florian Friesdorf f...@chaoflow.net GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 signature.asc 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] Haskell-env (via nix-shell) - am I doing this right?
Hi Matthias, error: cannot delete path ‘/nix/store/pqj35vwax89ljdhcca02a330ii4zzhiw-haskell-clientsession-0.9.1.1.drv’ since it is still alive https://github.com/NixOS/nixpkgs/issues/7792#issuecomment-100882553 discusses this problem. You have packages in one of your profiles that depend on haskell-clientsession, so it can't be removed. I hope this helps, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Haskell-env (via nix-shell) - am I doing this right?
Hi, thanks. Surprisingly I got it working. Now I can start developing my Haskell App! Thank you a lot! Now Haskell itself is the remaining problem! *smile* On 25-05-2015 15:48:12, Peter Simons wrote: Hi Matthias, error: cannot delete path ‘/nix/store/pqj35vwax89ljdhcca02a330ii4zzhiw-haskell-clientsession-0.9.1.1.drv’ since it is still alive https://github.com/NixOS/nixpkgs/issues/7792#issuecomment-100882553 discusses this problem. You have packages in one of your profiles that depend on haskell-clientsession, so it can't be removed. I hope this helps, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. pgphjv5qQzJ2n.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] Using R with Bioconductor
OK, turns out it's not so bad! We can skip biocLite and install packages directly, same as from CRAN. Draft changes here: https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bioc-pullreq Opinions? I considered splitting off a separate bioc-modules folder, but then I noticed the majority of broken R packages are just missing Bioconductor dependencies and decided the two aren't really separate. Plus it would be a lot of duplicated code, some of which I don't understand well enough to maintain. There might be conflicts between the Bioconductor and CRAN release schedules. I think a unified set of packages could require holding back from upgrading to the latest CRAN releases on occasion, so if that's a big problem maybe we do need two sets of packages (current CRAN, previous CRAN + current Bioconductor). Anyone familiar enough with Bioconductor to say for sure? Should I go ahead and make a pull request? I've attached the bash script I made to list remaining dependencies. After I ran it I had to go through and manually correct some things it doesn't pick up, like packages that exist but are known not to build. Jeff On Sun, 8 Mar 2015 12:00:27 -0700 Jeffrey David Johnson jef...@gmail.com wrote: Do any of you guys/gals use R and Bioconductor? The only page I can find related to setting it up is https://nixos.org/wiki/R. Bioconductor is a whole additional ecosystem on top of R/CRAN, with its own installer. You normally use it like: source(http://bioconductor.org/biocLite.R;) biocLite(PackageName) They explain why at http://bioconductor.org/install/#why-biocLite. How hard would it be to package that using Nix? Thanks Jeff list-still-broken.sh Description: Binary data ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev