fix vlang tools

This commit is contained in:
Sean Buckley 2022-04-27 02:08:19 -04:00
parent 30c2bbf1ad
commit cb8e891a3e

18
modules/vlang-fix.nix Normal file
View file

@ -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]])'
'';
});
})
];
}