mirror of
https://github.com/F1bonacc1/process-compose.git
synced 2024-09-17 14:27:37 +03:00
34559d993b
Yay, breaking changes on minor version updates! Cause: https://github.com/NixOS/nix/issues/6448#issuecomment-1132855605 I'll try submitting this package to nixpkgs, so the maintanence of the build instructions can be done separately. Until then this makes trying out process-compose for the latest nix users a breeze.
29 lines
977 B
Nix
29 lines
977 B
Nix
{
|
|
description =
|
|
"Process Compose is like docker-compose, but for orchestrating a suite of processes, not containers.";
|
|
|
|
# Nixpkgs / NixOS version to use.
|
|
inputs.nixpkgs.url = "nixpkgs";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlays."${system}".default ];
|
|
};
|
|
in {
|
|
overlays.default = final: prev: {
|
|
process-compose = final.callPackage ./default.nix { };
|
|
};
|
|
overlay = self.overlays.default;
|
|
packages = { inherit (pkgs) process-compose; };
|
|
defaultPackage = self.packages."${system}".process-compose;
|
|
apps.process-compose = flake-utils.lib.mkApp {
|
|
drv = self.packages."${system}".process-compose;
|
|
};
|
|
apps.default = self.apps."${system}".process-compose;
|
|
});
|
|
}
|