Use new to-edn function to generate config.

This commit is contained in:
2022-05-30 16:09:14 -07:00
parent 355ba09f04
commit cf2dd19b5f
3 changed files with 53 additions and 10 deletions
+7 -3
View File
@@ -13,9 +13,11 @@
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
to-edn.url = "git+https://git.fudo.org/fudo-public/to-edn.git";
};
outputs = { self, nixpkgs, utils, clj2nix, build-tools-src, gitignore, ... }:
outputs =
{ self, nixpkgs, utils, clj2nix, build-tools-src, gitignore, to-edn, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${system}";
@@ -25,8 +27,10 @@
};
in {
lib = {
mkClojureLib =
pkgs.callPackage ./mkClojureLib.nix { inherit build-tools-jar; };
mkClojureLib = pkgs.callPackage ./mkClojureLib.nix {
inherit build-tools-jar;
inherit (to-edn.lib) toEDN;
};
};
devShell."${system}" =
pkgs.mkShell { buildInputs = with pkgs; [ clojure clj2nix ]; };