Avoid top-level with ...; in pkgs/games/dwarf-fortress/themes/default.nix

This commit is contained in:
Philip Taron 2024-03-14 11:38:33 -07:00 committed by Valentin Gagarin
parent 1ed3d42bc1
commit 118bbb8bcc

View file

@ -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))