Open D3vil0p3r opened 4 weeks ago
Hey, I had the same issue when switching from 24.05
to unstable today. I'm not super experienced with Nixos, so I just pulled the package code down locally to attempt to fix it.
It seems like the issue is related to the package using super old versions of the evil-winrm
dependencies. From what I understand, this was likely based on the library requirement descriptions from the readme. Whatever the case, I managed to fix it by updating the stringio
version from 0.0.2
to 3.1.1
in gemset.nix
.
stringio = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "sha256-U0VuFBdcWU4OjrIgahvjPzl01P4hwTHmKJCLBcjCrh4=";
type = "gem";
};
version = "3.1.1";
};
Running a quick help command:
$ evil-winrm
Evil-WinRM shell v3.5
Error: missing argument: ip, user
Usage: evil-winrm -i IP -u USER [-s SCRIPTS_PATH] [-e EXES_PATH] [-P PORT] [-p PASS] [-H HASH] [-U URL] [-S] [-c PUBLIC_KEY_PATH ] [-k PRIVATE_KEY_PATH ] [-r REALM] [--spn SPN_PREFIX] [-l]
-S, --ssl Enable ssl
-c, --pub-key PUBLIC_KEY_PATH Local path to public key certificate
-k, --priv-key PRIVATE_KEY_PATH Local path to private key certificate
-r, --realm DOMAIN Kerberos auth, it has to be set also in /etc/krb5.conf file using this format -> CONTOSO.COM = { kdc = fooserver.contoso.com }
-s, --scripts PS_SCRIPTS_PATH Powershell scripts local path
--spn SPN_PREFIX SPN prefix for Kerberos auth (default HTTP)
-e, --executables EXES_PATH C# executables local path
-i, --ip IP Remote host IP or hostname. FQDN for Kerberos auth (required)
-U, --url URL Remote url endpoint (default /wsman)
-u, --user USER Username (required if not using kerberos)
-p, --password PASS Password
-H, --hash HASH NTHash
-P, --port PORT Remote host port (default 5985)
-V, --version Show version
-n, --no-colors Disable colors
-N, --no-rpath-completion Disable remote path completion
-l, --log Log the WinRM session
-h, --help Display this help message
My nix info:
$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.52, NixOS, 24.11 (Vicuna), 24.11.20240921.9357f4f`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.7`
- channels(root): `"nixos-24.05"`
- nixpkgs: `/nix/store/y6205wq8hxvpqvl8l9d1n9xah01kg0lq-source`
Thank you very much @Random936 Feel free to create a proper PR on it. If you cannot, I will do once I back home.
I just encountered the same issue with evil-winrm after updating my flake inputs. I am also running on nixos-unstable.
stringio.c: In function 'Init_stringio':
stringio.c:1626:50: error: 'rb_cData' undeclared (first use in this function)
1626 | VALUE StringIO = rb_define_class("StringIO", rb_cData);
| ^~~~~~~~
stringio.c:1626:50: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:248: stringio.o] Error 1
make failed, exit code
nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.9.11-xanmod1, Red Flake, rolling, rolling`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.5`
- nixpkgs: `/nix/store/bcghcr9qwqmanpds017w75mcqda4fgab-source`
There is a pull request already which should fix this issue: https://github.com/NixOS/nixpkgs/pull/345974
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
Add any other context about the problem here.
Notify maintainers
Missing maintainers inside .nix file.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.