nur-packages

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

default.nix (761B)


      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> args
     10 , system ? builtins.currentSystem
     11 , ...
     12 }@args:
     13 
     14 {
     15   # The `lib`, `modules`, and `overlay` names are special
     16   lib = import ./lib { inherit pkgs; }; # functions
     17   modules = import ./modules; # NixOS modules
     18   overlays = import ./overlays; # nixpkgs overlays
     19 } // (pkgs.lib.optionalAttrs (builtins.tryEval pkgs).success (import ./pkgs {
     20   inherit pkgs;
     21 }
     22 )
     23 )