nur.nix now automatically adds all pkgs in the ./mods/nurPkgs folder
This commit is contained in:
14
nur.nix
14
nur.nix
@@ -1,13 +1,15 @@
|
|||||||
# This is the file for my NUR Repo
|
# This is the file for my NUR Repo
|
||||||
# Reminder for myself: Any package here should not import <nixpkgs>, but use the pkgs
|
# Reminder for myself: Any package here should not import <nixpkgs>, but use the pkgs
|
||||||
|
|
||||||
{ pkgs ? import <nixpkgs> { } }: {
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
cbm = pkgs.callPackage ./mods/nurPkgs/cbm.nix {};
|
let
|
||||||
|
files = builtins.readDir ./mods/nurPkgs;
|
||||||
mac-telnet = pkgs.callPackage ./mods/nurPkgs/mac-telnet.nix {};
|
names = pkgs.lib.attrsets.mapAttrsToList (name: value: pkgs.lib.strings.removeSuffix ".nix" name) files;
|
||||||
|
pwd = builtins.toString ./.;
|
||||||
vis = pkgs.callPackage ./mods/nurPkgs/vis.nix {};
|
in pkgs.lib.attrsets.genAttrs names (name: (pkgs.callPackage "${pwd}/mods/nurPkgs/${name}.nix" {}))
|
||||||
|
//
|
||||||
|
{
|
||||||
|
|
||||||
iio-hyprland = let
|
iio-hyprland = let
|
||||||
repo = pkgs.fetchFromGitHub {
|
repo = pkgs.fetchFromGitHub {
|
||||||
|
|||||||
Reference in New Issue
Block a user