feat(build): Add top-level package index file

This commit is contained in:
Vincent Ambo 2019-06-29 14:12:24 +01:00
parent 5c3ac08fcf
commit 4cefb9256a

17
default.nix Normal file
View file

@ -0,0 +1,17 @@
# This file sets up the top-level package set by merging all local
# packages into the nixpkgs top-level.
let
localPkgs = super: pkgs: {
tazjin.tazblog = import ./services/tazblog { inherit pkgs; };
};
# TODO(tazjin): It might be preferable to pin a specific commit of
# nixpkgs, but for now the assumption will be that a single release
# channel is reasonably stable.
nixpkgsVersion = "nixos-19.03";
nixpkgs = "https://github.com/NixOS/nixpkgs-channels/archive/${nixpkgsVersion}.tar.gz";
in import (builtins.fetchTarball nixpkgs) {
overlays = [ localPkgs ];
}