git.iko.soy/typeable/cabal2nix
on master help sign in
README.md: don't refer to the obsolete $NIXPKGS_ALL environment variable
commit8f703e47d3620d2997644d7e2a013b0334249192 authorPeter Simons <simons@cryp.to> dateSat 16 Nov 2013, 12:14 (13 years ago) parent1788d62
1 file changed+16−14
README.md+16−14
README.md+16−14
@@ -47,9 +47,10 @@ provided, as well as a `file:///local/path/pkg.cabal` URI that doesn't
4747depend on network access. Run the utility with `--help` to see the
4848complete list of supported command line flags.
4949
50−To add a new package to Nix, the following steps need to be performed:
50+To add a new package to Nix, checkout the Nixpkgs project from
51+https://github.com/nixos/nixpkgs.git and run
5152
52− $ cd $NIXPKGS_ALL/pkgs/development/libraries/haskell
53+ $ cd pkgs/development/libraries/haskell
5354 $ mkdir foo
5455 $ cabal2nix cabal://foo-1.0 >foo/default.nix
5556
@@ -67,37 +68,38 @@ Furthermore, `hackage4nix` adds default settings for the
6768`meta.maintainers` and `meta.platforms` attribute if these aren't
6869configured yet. Generally speaking, running
6970
70− $ hackage4nix $NIXPKGS_ALL
71+ $ hackage4nix pkgs
7172
72−should be a *no-op* --- i.e. no files should change! If there are
73−changes, these indicate that a file has been modified manually, and then
74−these changes must be investigated to find out what is going on.
73+in your checked-out copy of the Nixpkgs tree should be a *no-op* ---
74+i.e. no files should change! If there are changes, these indicate that a
75+file has been modified manually, and then these changes must be
76+investigated to find out what is going on.
7577
7678Last but not least, `hackage4nix` generates a list of all updates
7779available from Hackage. (Run `cabal update` to make sure that your local
7880copy of the Hackage database is up-to-date!) For example:
7981
80− $ hackage4nix $NIXPKGS_ALL
82+ $ hackage4nix pkgs
8183 The following updates are available:
8284
8385 WebBits-Html-1.0.1:
84− cabal2nix cabal://WebBits-Html-1.0.2 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/WebBits-Html/default.nix
86+ cabal2nix cabal://WebBits-Html-1.0.2 >pkgs/pkgs/development/libraries/haskell/WebBits-Html/default.nix
8587
8688 happstack-server-6.1.6:
87− cabal2nix cabal://happstack-server-6.2.1 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/happstack/happstack-server.nix
88− cabal2nix cabal://happstack-server-6.2.2 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/happstack/happstack-server.nix
89+ cabal2nix cabal://happstack-server-6.2.1 >pkgs/pkgs/development/libraries/haskell/happstack/happstack-server.nix
90+ cabal2nix cabal://happstack-server-6.2.2 >pkgs/pkgs/development/libraries/haskell/happstack/happstack-server.nix
8991
9092 primitive-0.3.1:
91− cabal2nix cabal://primitive-0.4 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/primitive/default.nix
93+ cabal2nix cabal://primitive-0.4 >pkgs/pkgs/development/libraries/haskell/primitive/default.nix
9294
9395 repa-2.1.1.5:
94− cabal2nix cabal://repa-2.1.1.6 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/repa/default.nix
96+ cabal2nix cabal://repa-2.1.1.6 >pkgs/pkgs/development/libraries/haskell/repa/default.nix
9597
9698 unix-compat-0.2.2.1:
97− cabal2nix cabal://unix-compat-0.3 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/unix-compat/default.nix
99+ cabal2nix cabal://unix-compat-0.3 >pkgs/pkgs/development/libraries/haskell/unix-compat/default.nix
98100
99101 vector-0.7.1:
100− cabal2nix cabal://vector-0.8 >$NIXPKGS_ALL/pkgs/development/libraries/haskell/vector/default.nix
102+ cabal2nix cabal://vector-0.8 >pkgs/pkgs/development/libraries/haskell/vector/default.nix
101103
102104These updates can be performed automatically by running the `cabal2nix`
103105command given by `hackage4nix`. If there is more than one possible