37 lines
837 B
Nix
37 lines
837 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
interceptty-src = {
|
|
url = "github:geoffmeyers/interceptty";
|
|
flake = false;
|
|
};
|
|
};
|
|
outputs = { self, nixpkgs, flake-utils, interceptty-src, ... }:
|
|
flake-utils.lib.eachSystem [
|
|
"x86_64-linux" "i686-linux" "aarch64-linux"
|
|
] (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
interceptty = pkgs.stdenv.mkDerivation {
|
|
name = "interceptty";
|
|
|
|
src = interceptty-src;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkgs.autoreconfHook ];
|
|
|
|
checkPhase = ''
|
|
./test
|
|
'';
|
|
};
|
|
|
|
in
|
|
{
|
|
packages.default = interceptty;
|
|
packages.interceptty = interceptty;
|
|
}
|
|
);
|
|
}
|