-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
flake.nix
37 lines (35 loc) · 1.24 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
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/master";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
let
mkPackage = pkgs: pkgs.callPackage ./default.nix {
#version = self.shortRev or "dirty";
date = self.lastModifiedDate;
commit = self.shortRev or "dirty";
};
in
(flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.process-compose = mkPackage pkgs;
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;
checks.default = self.packages."${system}".process-compose.overrideAttrs (prev: {
doCheck = true;
nativeBuildInputs = prev.nativeBuildInputs ++ (with pkgs; [python3]);
});
})
) // {
overlays.default = final: prev: {
process-compose = mkPackage final;
};
}
;
}