phoebe/pkgs/default.nix
2019-03-06 14:48:44 -07:00

18 lines
326 B
Nix

{ pkgs ? import <nixpkgs> {}
}:
with pkgs.lib;
let
callPackage = f:
let json = removeAttrs (importJSON f) ["date"];
in callPackageWith attrs "${pkgs.fetchgit json}/default.nix";
attrs = {
inherit pkgs;
# Useful backup scripts.
backup-scripts = callPackage ./backup-scripts.json { };
};
in attrs