commit bd2b9ac0fa4ac3fe9e56a09963a7dfb6dc0abd1a Author: Nicolas Hiillos Date: Thu Aug 17 10:12:21 2023 +0300 Add flake diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d923e6c --- /dev/null +++ b/flake.nix @@ -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; + } + ); +}