chore: nix flake for CLI

This commit is contained in:
Julian Tölle 2024-05-19 22:57:10 +02:00
parent 043c73cf7d
commit a7c9ba002d
No known key found for this signature in database
GPG key ID: 23645912EA28C2DB
4 changed files with 133 additions and 1 deletions

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # unstable for go 1.22
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = system;
};
hcloud-upload-image = pkgs.callPackage ./hcloud-upload-image.nix { };
in
{
packages = {
default = hcloud-upload-image;
};
devShells = {
default = pkgs.mkShell {
packages = [ hcloud-upload-image ];
};
};
}
);
}