Skip to content

Commit

Permalink
~ drop narrow sense nur support
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Dec 4, 2024
1 parent 1b3accd commit 32786bb
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
{
pkgs ? import <nixpkgs> { },
}:
(pkgs.lib.packagesFromDirectoryRecursive {
inherit (pkgs) callPackage;
directory = ./pkgs/by-name;
})
let
emptyWithWarn =
n:
pkgs.callPackage (
{ stdenvNoCC, lib }:
lib.warn "Package ${n} from NUR oluceps/nixos-config does NOT support nix without flake" (
stdenvNoCC.mkDerivation {
pname = n;
version = "0.0.0";
installPhase = "mkdir -p $out";
}
)
) { };
in

pkgs.lib.genAttrs (map (pkgs.lib.removeSuffix ".nix") (
builtins.attrNames (builtins.readDir ./pkgs/by-name)
)) emptyWithWarn

0 comments on commit 32786bb

Please sign in to comment.