2022-11-09 21:05:41 -08:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-21.11";
|
|
|
|
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
|
|
|
|
clj-nix = {
|
|
|
|
url = "github:jlesquembre/clj-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, utils, clj-nix, ... }@inputs:
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
mkCljBin = clj-nix.packages."${system}".mkCljBin;
|
|
|
|
updateDeps = pkgs.writeShellScriptBin "update-deps.sh" ''
|
|
|
|
${clj-nix.packages."${system}".deps-lock}/bin/deps-lock
|
|
|
|
'';
|
2022-11-09 21:17:13 -08:00
|
|
|
in rec {
|
2022-11-09 21:05:41 -08:00
|
|
|
packages = rec {
|
|
|
|
krb5-keygen = mkCljBin {
|
2022-11-09 21:19:15 -08:00
|
|
|
projectSrc = ./.;
|
2022-11-09 21:05:41 -08:00
|
|
|
name = "org.fudo.kerberos/keygen";
|
|
|
|
main-ns = "kerberos.keygen.core";
|
|
|
|
jdkRunner = pkgs.jdk17_headless;
|
|
|
|
version = "0.1";
|
|
|
|
};
|
|
|
|
default = krb5-keygen;
|
|
|
|
};
|
|
|
|
|
|
|
|
apps = rec {
|
2022-11-09 21:17:13 -08:00
|
|
|
krb5-keygen = utils.lib.mkApp { drv = packages.krb5-keygen; };
|
2022-11-09 21:05:41 -08:00
|
|
|
default = krb5-keygen;
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells.default =
|
|
|
|
pkgs.mkShell { buildInputs = with pkgs; [ updateDeps ]; };
|
|
|
|
});
|
|
|
|
}
|