From dc61ea5a925e422e77ba3e24e8fa29695b646e57 Mon Sep 17 00:00:00 2001 From: Xory Date: Sat, 20 Dec 2025 13:49:52 +0200 Subject: [PATCH] feat: nixos dev support --- .gitignore | 2 +- flake.nix | 17 +++++++++++++++++ shell.nix | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 flake.nix create mode 100644 shell.nix diff --git a/.gitignore b/.gitignore index 3b50614..4528889 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target Cargo.lock -rust-obfuscator.exe +flake.lock src/payload.exe diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..748b1a6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Skylink"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = import ./shell.nix { inherit pkgs; }; + } + ); +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..63004b3 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +{ pkgs ? import {} }: +with pkgs; +mkShell { + buildInputs = [ + pkgsCross.mingwW64.buildPackages.gcc + pkgsCross.mingwW64.buildPackages.glibc + rustup + libpthread-stubs + pkg-config + openssl + ]; + CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS = "-L native=${pkgs.pkgsCross.mingwW64.windows.pthreads}/lib"; + +}