A new start
This commit is contained in:
commit
f4e2368893
93 changed files with 7621 additions and 0 deletions
20
lib/default.nix
Normal file
20
lib/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ lib, inputs, snowfall-inputs }:
|
||||
|
||||
rec {
|
||||
## Override a package's metadata
|
||||
##
|
||||
## ```nix
|
||||
## let
|
||||
## new-meta = {
|
||||
## description = "My new description";
|
||||
## };
|
||||
## in
|
||||
## lib.override-meta new-meta pkgs.hello
|
||||
## ```
|
||||
##
|
||||
#@ Attrs -> Package -> Package
|
||||
override-meta = meta: package:
|
||||
package.overrideAttrs (attrs: {
|
||||
meta = (attrs.meta or { }) // meta;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue