Init repo
This commit is contained in:
35
flake.nix
Normal file
35
flake.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
description = "A clj-nix flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
clj-nix.url = "github:jlesquembre/clj-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, clj-nix }:
|
||||
|
||||
flake-utils.lib.eachDefaultSystem (system: {
|
||||
|
||||
packages = {
|
||||
|
||||
default = clj-nix.lib.mkCljApp {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [
|
||||
# Option list:
|
||||
# https://jlesquembre.github.io/clj-nix/options/
|
||||
{
|
||||
projectSrc = ./.;
|
||||
name = "me.lafuente/cljdemo";
|
||||
main-ns = "hello.core";
|
||||
|
||||
nativeImage.enable = true;
|
||||
|
||||
# customJdk.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user