mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
19 lines
486 B
Nix
19 lines
486 B
Nix
|
{ 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]])'
|
||
|
'';
|
||
|
});
|
||
|
})
|
||
|
];
|
||
|
}
|