diff --git a/modules/vlang-fix.nix b/modules/vlang-fix.nix new file mode 100644 index 0000000..ca1e63f --- /dev/null +++ b/modules/vlang-fix.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +# This is a temporary workaround for +# https://github.com/NixOS/nixpkgs/issues/131539 + +{ + nixpkgs.overlays = [ + (self: super: { + vlang = super.vlang.overrideAttrs (_: { + postInstall = '' + find $out/lib/cmd/tools -maxdepth 1 -name 'v*.v' | + HOME=$TMPDIR xargs -P0 -n1 ${pkgs.python3}/bin/python -c \ + 'import os,sys,pty; pty.spawn([os.getenv("out")+"/bin/v",sys.argv[1]])' + ''; + }); + }) + ]; +}