bootstrap/specs/nifi/template/flake.nix

35 lines
947 B
Nix
Raw Permalink Normal View History

2024-01-22 21:29:14 +00:00
{
description = "A playground for NiFi.";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
image = pkgs.dockerTools.pullImage {
2024-01-22 23:16:47 +00:00
finalImageName = "apache/nifi";
finalImageTag = "1.24.0";
2024-01-22 21:29:14 +00:00
imageName = "apache/nifi";
2024-01-22 23:16:47 +00:00
imageDigest = "sha256:dd6fcf708a63d7a43b1e0b1224d3cf754235a7f4e66945119fb2aa6be8d6ee2d";
sha256 = "sha256-l4beU3yEDGFDXCauIPN7nwhTrKf0rZRGcpKvH+a9lo0=";
2024-01-22 21:29:14 +00:00
os = "linux";
arch = "amd64";
};
default = self.packages.${system}.image;
};
devShells.default = pkgs.mkShell {
packages = [ pkgs.docker ];
};
});
}