summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-14 11:38:33 -0700
committerValentin Gagarin <valentin.gagarin@tweag.io>2024-03-31 00:42:56 +0100
commit118bbb8bcc34d280a8c5bcea50f7742b2b4a4526 (patch)
treeb6197d89d94e998d0ef5dbecc72b05a5a374ee0d /pkgs/games
parent1ed3d42bc10eceed4f9ce8443ef773b1704dc52e (diff)
Avoid top-level `with ...;` in pkgs/games/dwarf-fortress/themes/default.nix
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/dwarf-fortress/themes/default.nix15
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 d2e2ec5fd19b..ad033b043a46 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))