1
0
mirror of https://github.com/h7x4/nix-attr-search.git synced 2024-12-22 20:17:30 +01:00
nix-attr-search/internals/json2nix/default.nix

8 lines
307 B
Nix

{ pkgs, compiler ? "ghc924", ... }:
let
overlayedPkgs =
pkgs.extend (pkgs.callPackage ./haskell-overlay.nix { inherit compiler; });
in overlayedPkgs.writers.writeHaskellBin "json2nix" {
libraries = with overlayedPkgs.haskellPackages; [ aeson nixfmt extra text ];
} (builtins.readFile ./json2nix.hs)