Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Daniel Hlynskyi
2012/8/14 Daniel Hlynskyi > > I have problem with this part. How to test packages if my nix-env doesn't > know anything about git cloned repo? It says "error: attribute `nixpkgs' in > selection path `nixpkgs' not found" > Oh that was easy. I had to do this: [danbst@localhosted:~/nixpkgs]$ nix-en

Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Daniel Hlynskyi
> > 2012/8/14 Daniel Hlynskyi > >> 2012/8/14 Patrick Wheeler >> >>> >>> Then I do a test install nix-env -iA >>> nixpkgs.haskellPackages.. Run tests and enjoy, or commit code >>> and preform a pull request. >>> >> >> I have problem with this part. How to test packages if my nix-env doesn't >> kno

Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Marc Weber
This is the most recent howto Haskell page: https://nixos.org/wiki/Haskell talking about how to use the Haskell packages which are packaged by official nixpkgs. My personal solution which is an alternative called "hack-nix" allows you to install the package by adding a single line: pipesCore

Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Patrick Wheeler
I do not know if this is canonical method, but I clone the git repo https://github.com/NixOS/nixpkgs cabal2nix cabal://- > .../nixpkgs/pkg/development/libraries/haskell//(default | ).nix default.nix if you do not need multiple versions. Add the following to nixpkgs/top-level/haskell-packages.nix

[Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Daniel Hlynskyi
Hello. I'm trying to create an installable package for `pipes-core` Hackage package. But got in troubles. 1. I used cabal2nix, but failed on installing the .nix file. After googling some time, I've done `nix-env -f all-packages.nix -iA haskellPackages.pipesCore`, so I've got package locally. But

[Nix-dev] corrupted manifest?

2012-08-14 Thread Marco Maggesi
Hi, on one of my computer I cannot update the channels: [root@neve:~]# nix-channel --update fetching list of Nix archives at ` http://nixos.org/releases/nixos/nixos-0.1pre3901_a025e84-50cc562/MANIFEST.bz2'. .. % Total% Received % Xferd Average Speed TimeTime Time Current