Initial checkin
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{
|
||||
description = "Chute - Cryptocurrency Parachute.";
|
||||
|
||||
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 = import nixpkgs { inherit system; };
|
||||
mkCljBin = clj-nix.packages."${system}".mkCljBin;
|
||||
update-deps = pkgs.writeShellScriptBin "update-deps.sh" ''
|
||||
${clj-nix.packages."${system}".deps-lock}/bin/deps-lock
|
||||
'';
|
||||
in {
|
||||
packages.chute = mkCljBin {
|
||||
projectSrc = ./.;
|
||||
name = "org.fudo/chute";
|
||||
main-ns = "chute.core";
|
||||
jdkRunner = pkgs.jdk17_headless;
|
||||
version = "0.1";
|
||||
};
|
||||
|
||||
devShell =
|
||||
pkgs.mkShell { buildInputs = with pkgs; [ clojure update-deps ]; };
|
||||
})) // {
|
||||
nixosModule = { };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user