mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 21:31:03 +00:00
feat: Add flake.nix
This commit is contained in:
parent
f188c584f3
commit
a0075b8a94
2 changed files with 95 additions and 0 deletions
34
flake.nix
Normal file
34
flake.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
description = "hcloud-upload-image - Quickly upload any raw disk images into your Hetzner Cloud projects";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
outputs = inputs @ {flake-parts, ...}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
|
||||
perSystem = {pkgs, ...}: let
|
||||
pkg = pkgs.callPackage ./default.nix {};
|
||||
app = {
|
||||
type = "app";
|
||||
program = "${pkg}/bin/hcloud-upload-image";
|
||||
};
|
||||
in {
|
||||
packages.default = pkg;
|
||||
packages.hcloud-upload-image = pkg;
|
||||
|
||||
apps.default = app;
|
||||
apps.hcloud-upload-image = app;
|
||||
|
||||
devShells.default = pkgs.callPackage ./shell.nix {};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue