STATUS: alpha
The nixpkgs project contains package definitions for free and unfree packages but only builds free packages. This project is complementary. We're enabling the unfree bits and pushing those to our cache. It also makes the flake use-case a bit easier to use.
Initially, this project spawned from the reflections drawn in and is now expanding to provide a wider set of features.
The CI is pushing build results to https://numtide.cachix.org. The site provides instructions on adding the cache to your system.
Some packages have been changed to use the better-performing proprietary libraries. Think MPI / Blas / Lapack / ...
To see the full list, look at the overlay.
If your flake depends on unfree packages, please consider pointing it to this project to avoid creating more instances of nixpkgs. See https://discourse.nixos.org/t/1000-instances-of-nixpkgs/17347 for a more in-depth explanation of the issue.
Here is how you can replace your instance of nixpkgs with unfree packages enabled:
{
inputs.nixpkgs.url = "github:numtide/nixpkgs-unfree";
inputs.nixpkgs.inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
# Optionally, pull pre-built binaries from this project's cache
nixConfig.extra-substituters = [ "https://numtide.cachix.org" ];
nixConfig.extra-trusted-public-keys = [ "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=" ];
outputs = { self, nixpkgs, ... }: { ... };
}
For new flakes, you can use also use our templates like this:
$ nix flake init -t github:numtide/nixpkgs-unfree
$ nix flake init -t github:numtide/nixpkgs-unfree#devShell # for mkShell based setup
Or, potentially, you might want to explicitly access unfree packages and have a separate instance:
{
# The main nixpkgs instance
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# The unfree instance
inputs.nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree";
inputs.nixpkgs-unfree.inputs.nixpkgs.follows = "nixpkgs";
# Optionally, pull pre-built binaries from this project's cache
nixConfig.extra-substituters = [ "https://numtide.cachix.org" ];
nixConfig.extra-trusted-public-keys = [ "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=" ];
outputs = { self, nixpkgs, nixpkgs-unfree }: { ... };
}
Thanks to this flake, it make it easy to run unfree packages. Eg:
$ nix run github:numtide/nixpkgs-unfree/nixos-unstable#slack
See the "supported channels" section to find out which channels are being synched.
FIXME: channel branches are currently force-pushed so they shouldn't be used as pinned sources.
The following channels are updated daily (more in the future):
- nixos-unstable
- nixpkgs-unstable
- nixos-23.05
The first implementation of that idea was done by @domenkozar at https://github.com/cachix/nixpkgs-unfree-redistributable.
All the code in this repository is published under the MIT and will always remain under an OSI-compliant license.
The binary cache is available for free for non-commercial usage.
If you're interested in supporting this project, get in touch!.