mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
fix vlang tools
This commit is contained in:
parent
30c2bbf1ad
commit
cb8e891a3e
1 changed files with 18 additions and 0 deletions
18
modules/vlang-fix.nix
Normal file
18
modules/vlang-fix.nix
Normal 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]])'
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue