coinbase-pro-client/flake.nix

38 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2022-06-06 09:37:23 -07:00
{
description = "Coinbase Pro Client.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
utils.url = "github:numtide/flake-utils";
clj-nix = {
url = "github:jlesquembre/clj-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, utils, clj-nix, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
cljpkgs = clj-nix.packages."${system}";
update-deps = pkgs.writeShellScriptBin "update-deps.sh" ''
${clj-nix.packages."${system}".deps-lock}/bin/deps-lock
'';
in {
packages = {
coinbase-pro-client = cljpkgs.mkCljBin {
projectSrc = ./.;
name = "org.fudo/coinbase-pro.client";
main-ns = "coinbase-pro.client.core";
jdkRunner = pkgs.jdk17_headless;
version = "0.1";
2022-06-06 09:37:23 -07:00
};
};
defaultPackage = self.packages."${system}".coinbase-pro-client;
devShell =
pkgs.mkShell { buildInputs = with pkgs; [ clojure update-deps ]; };
});
}