mkFirefoxModule: userchrome support derivations (#6844)

This commit is contained in:
Austin Horstman 2025-04-18 17:57:48 -07:00 committed by GitHub
parent 67f60ebce8
commit 991a480472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 2 deletions

View file

@ -870,12 +870,12 @@ in
_: profile:
let
chromePath =
if ((i: lib.isPath i && lib.pathIsDirectory i) profile.userChrome) then
if ((i: (lib.isPath i && lib.pathIsDirectory i) || lib.isDerivation i) profile.userChrome) then
"chrome"
else
"chrome/userChrome.css";
sourcePath =
if ((i: lib.isPath i && lib.types.path.check i) profile.userChrome) then
if ((i: (lib.isPath i && lib.types.path.check i) || lib.isDerivation i) profile.userChrome) then
profile.userChrome
else
null;