mirror of
https://github.com/F1bonacc1/process-compose.git
synced 2024-09-11 19:37:08 +03:00
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
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 = "github:NixOS/nixpkgs/release-22.11";
|
|
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 {
|
|
#version = self.shortRev or "dirty";
|
|
date = self.lastModifiedDate;
|
|
commit = self.shortRev or "dirty";
|
|
};
|
|
};
|
|
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;
|
|
});
|
|
}
|