mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Nix Packages collection
1f18f65650
The callCabal2nix function cannot reliably determine the appropriate "name" for the package it's processing. Attempts to derive this information have led to plenty of evaluation errors, and so I'd like to go for the obvious and reliable solution now and let the caller specify that bit of information. Here is an example that demonstrates how to use callCabal2nix. let pkgs = import <nixpkgs> {}; src = pkgs.fetchFromGitHub { owner = "gtk2hs"; repo = "gtk2hs"; rev = "eee61d84edf1dd44f8d380d7d7cae2405de50124"; sha256 = "12i53grimni0dyjqjydl120z5amcn668w4pfhl8dxscjh4a0l5nb"; }; in pkgs.haskellPackages.callCabal2nix "gtkhs-tools" "${src}/tools" {} |
||
---|---|---|
.github | ||
doc | ||
lib | ||
maintainers | ||
nixos | ||
pkgs | ||
.editorconfig | ||
.gitignore | ||
.mention-bot | ||
.travis.yml | ||
.version | ||
COPYING | ||
default.nix | ||
README.md |
Nixpkgs is a collection of packages for the Nix package manager. It is periodically built and tested by the hydra build daemon as so-called channels. To get channel information via git, add nixpkgs-channels as a remote:
% git remote add channels git://github.com/NixOS/nixpkgs-channels.git
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. nixos-16.09
for the latest
release and nixos-unstable
for the latest successful build of master:
% git remote update channels
% git rebase channels/nixos-16.09
For pull-requests, please rebase onto nixpkgs master
.
NixOS linux distribution source code is located inside
nixos/
folder.
- NixOS installation instructions
- Documentation (Nix Expression Language chapter)
- Manual (How to write packages for Nix)
- Manual (NixOS)
- Nix Wiki (deprecated, see milestone "Move the Wiki!")
- Continuous package builds for unstable/master
- Continuous package builds for 16.09 release
- Tests for unstable/master
- Tests for 16.09 release
Communication: