backplane-client/flake.nix

35 lines
980 B
Nix
Raw Normal View History

2023-01-28 10:15:54 -08:00
{
description = "Fudo Backplane Client.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
helpers.url = "git+https://git.fudo.org/fudo-public/nix-helpers.git";
utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, helpers, utils, ... }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages."${system}";
in {
packages = rec {
default = backplaneDnsClient;
backplaneDnsClient =
import ./dns-client.nix { inherit pkgs helpers; };
2023-01-28 10:15:54 -08:00
};
devShells = rec {
default = update;
update = let
update-deps = pkgs.writeShellApplication {
name = "update-deps";
2023-01-28 10:34:43 -08:00
runtimeInputs = with pkgs; [ bundler bundix ];
2023-01-28 10:15:54 -08:00
text = ''
bundle lock
bundix
'';
};
in pkgs.mkShell { buildInputs = with pkgs; [ update-deps ]; };
};
});
}