mirror of
https://github.com/nix-community/flakelight.git
synced 2025-07-11 03:25:15 +02:00
Remove use of different pkgs for calculating name
If a package uses `pkgs` and tries to get a non-existing package, there will be an uncachable error. As we cannot control this, this method needs to be removed. Instead of using this method, the mocked pkgs should be extended to support more cases.
This commit is contained in:
@ -59,8 +59,6 @@ in
|
||||
packageOverlay = final: prev:
|
||||
let
|
||||
getName = pkg: pkg.pname or (parseDrvName pkg.name).name;
|
||||
inherit (prev.stdenv.hostPlatform) system;
|
||||
baseNixpkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
mockPkgs = import ../misc/nameMockedPkgs.nix prev;
|
||||
|
||||
defaultPkgName = findFirst (x: (tryEval x).success)
|
||||
@ -69,7 +67,6 @@ in
|
||||
[
|
||||
(assert config.pname != null; config.pname)
|
||||
(getName (mockPkgs.callPackage config.packages.default { }))
|
||||
(getName (baseNixpkgs.callPackage config.packages.default { }))
|
||||
(getName (import inputs.nixpkgs {
|
||||
inherit (prev.stdenv.hostPlatform) system;
|
||||
inherit (config.nixpkgs) config;
|
||||
|
Reference in New Issue
Block a user