nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (612B)


      1 # This file describes your repository contents.
      2 # It should return a set of nix derivations
      3 # and optionally the special attributes `lib`, `modules` and `overlays`.
      4 # It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
      5 # Having pkgs default to <nixpkgs> is fine though, and it lets you use short
      6 # commands such as:
      7 #     nix-build -A mypackage
      8 
      9 { pkgs ? import <nixpkgs> { } }:
     10 
     11 {
     12   # The `lib`, `modules`, and `overlay` names are special
     13   modules = import ./modules; # NixOS modules
     14 } // (pkgs.lib.optionalAttrs (builtins.tryEval pkgs).success (import ./pkgs {
     15   inherit pkgs;
     16 }
     17 )
     18 )