{ inputs = { teleia.url = "github:lcolonq/teleia"; nixpkgs.follows = "teleia/nixpkgs"; }; outputs = inputs@{ self, nixpkgs, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; inherit (pkgs) lib; src = ./.; elfland = inputs.teleia.native.build src "elfland"; nonnix = pkgs.stdenv.mkDerivation { name = "elfland-nonnix"; phases = [ "installPhase" ]; installPhase = '' mkdir $out cp -rv ${elfland}/bin/elfland $out chmod +w $out/elfland patchelf --remove-rpath $out/elfland patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $out/elfland strip $out/elfland chmod -w $out/elfland ''; }; windows = inputs.teleia.windows.build src "elfland"; wasm = inputs.teleia.wasm.buildAtUrlInDir src "elfland" "/" "./crates/elfland"; in { packages.${system} = { default = elfland; inherit elfland nonnix windows wasm; }; applications.${system}.default = { type = "app"; program = "${elfland}/bin/elfland"; }; devShells.${system} = { # default = inputs.teleia.shell; default = inputs.teleia.shell.overrideAttrs (final: prev: { RA_LOG = "rust_analyzer=info"; }); windows = inputs.teleia.windows.shell; }; overlay = self: super: { elfland = { inherit wasm; }; }; }; }