Add flake
This commit is contained in:
35
flake.nix
Normal file
35
flake.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
interceptty-src.url = "github:geoffmeyers/interceptty";
|
||||||
|
};
|
||||||
|
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 = pkgs.callPackage ./ethercat.nix { inherit kernel; };
|
||||||
|
#packages.ethercat = pkgs.callPackage ./ethercat.nix { inherit kernel; };
|
||||||
|
packages.default = interceptty;
|
||||||
|
packages.interceptty = interceptty;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user