diff options
author | Philip Taron <philip.taron@gmail.com> | 2024-03-14 11:38:33 -0700 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2024-03-31 00:42:56 +0100 |
commit | 118bbb8bcc34d280a8c5bcea50f7742b2b4a4526 (patch) | |
tree | b6197d89d94e998d0ef5dbecc72b05a5a374ee0d | |
parent | 1ed3d42bc10eceed4f9ce8443ef773b1704dc52e (diff) |
Avoid top-level `with ...;` in pkgs/games/dwarf-fortress/themes/default.nix
-rw-r--r-- | pkgs/games/dwarf-fortress/themes/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/games/dwarf-fortress/themes/default.nix b/pkgs/games/dwarf-fortress/themes/default.nix index d2e2ec5fd19b1..ad033b043a46b 100644 --- a/pkgs/games/dwarf-fortress/themes/default.nix +++ b/pkgs/games/dwarf-fortress/themes/default.nix @@ -1,6 +1,15 @@ { lib, fetchFromGitHub, ... }: -with builtins; +let + inherit (lib) + importJSON + licenses + listToAttrs + maintainers + platforms + readFile + ; +in listToAttrs (map (v: { @@ -11,11 +20,11 @@ listToAttrs (map repo = v.name; rev = v.version; sha256 = v.sha256; - meta = with lib; { + meta = { platforms = platforms.all; maintainers = [ maintainers.matthewbauer maintainers.shazow ]; license = licenses.free; }; }; }) - (fromJSON (readFile ./themes.json))) + (importJSON ./themes.json)) |