Nix User Repository packages
Nix packages that aren't popular enough to be in the main nixpkgs repository. They also deserve some love ❤️
Clone this repository then use nix-shell --command 'task build'
to build all
packages locally. Check the Taskfile.yaml
or use task -l
for more commands.
Import it either directly or through NUR. See instructions below. It takes two optional parameters:
system
, which defaults tobuiltins.currentSystem
pkgs
, which defaults to<nixpkgs>
and inheritssystem
You can use this form in shells, flakes and any other independent nix file.
{ pkgs, ... }:
let
nurpkgs = import (builtins.fetchTarball "https://github.com/wwmoraes/nurpkgs/archive/master.tar.gz") { inherit pkgs; };
in { ... }
Use nurpkgs.<package-name>
to reference a package from this repository.
let
pkgs = import <nixpkgs> {
config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
};
};
in { ... }
Then use nur.repos.wwmoraes.<package-name>
to install a package from this
repository. Check https://github.com/nix-community/NUR for more details.
The repository has a companion Cachix binary cache with aarch64-darwin
and
x86_64-linux
builds. Use cachix use wwmoraes
or configure it manually in
your nix settings.
Add to your /etc/nixos/configuration.nix
:
nix.settings.substituters = [
...
"https://wwmoraes.cachix.org"
];
nix.settings.trusted-public-keys = [
...
"wwmoraes.cachix.org-1:N38Kgu19R66Jr62aX5rS466waVzT5p/Paq1g6uFFVyM="
];
Add to /etc/nix/nix.conf
:
extra-substituters = https://wwmoraes.cachix.org
extra-trusted-public-keys = wwmoraes.cachix.org-1:N38Kgu19R66Jr62aX5rS466waVzT5p/Paq1g6uFFVyM=
- @wwmoraes - Idea & Initial work
- Hat tip to anyone whose code was used
- Inspiration
- References