Files
imphnen-backend-service/flake.nix
T

33 lines
808 B
Nix
Raw Normal View History

2025-02-03 21:53:42 +07:00
{
description = "IMPHNEN CMS API Nix Flake";
2025-02-26 15:55:48 +07:00
2025-02-03 21:53:42 +07:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
2025-02-26 15:55:48 +07:00
2025-02-03 21:53:42 +07:00
outputs = {
self,
nixpkgs,
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux"];
2025-02-26 15:55:48 +07:00
pkgsFor = system:
import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
2025-02-03 21:53:42 +07:00
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in {
packages = forAllSystems (system: {
2025-02-26 15:55:48 +07:00
default = (pkgsFor system).callPackage ./default.nix {};
2025-02-03 21:53:42 +07:00
});
devShells = forAllSystems (system: {
2025-02-26 15:55:48 +07:00
default = (pkgsFor system).callPackage ./shell.nix {};
2025-02-03 21:53:42 +07:00
});
dockerImages = forAllSystems (system: {
2025-02-26 15:55:48 +07:00
tryOutApi = (pkgsFor system).callPackage ./docker.nix {};
2025-02-03 21:53:42 +07:00
});
};
}