I want to use a haskell package in a WSL instance but managed by home-manager. It is well-documented how to do this and works except when the build finally is running tests, which generally break on this setup due to
clock_getres: invalid argument (Invalid argument)
Regularly I have an overlay containing that but somehow it isn’t working on that special occasion. Can you tell me how to achieve the switching-off of tests here ?
# ~/.config/nixpkgs/home.nix
{
imports = [
../program/smos
];
}
# ~/.config/nixpkgs/program/smos/default.nix
{ pkgs, lib, ... }:
with lib;
let
smosModule = (builtins.fetchGit {
url = "https://github.com/NorfairKing/smos";
ref = "master";
rev = "53e1f37a06f16f2b32452ba0cc736e3707eb268a"; # Add a recent version here.
} + "/nix/program.nix");
in
{
imports = [
smosModule
# [...]
];
programs.smos = {
enable = true;
backup = {
enable = true;
};
sync = {
enable = false;
username = "YOURUSERNAMEHERE";
password = "YOURPASSWORDHERE";
};
};
}
# ~/.config/nixpkgs/overlays/haskell-no-check.nix
# https://stackoverflow.com/a/57854640
self: super: {
haskell = super.haskell // {
packageOverrides = hself: hsuper: {
mkDerivation = args: hsuper.mkDerivation (args // {
doCheck = false;
doHaddock = false;
});
};
};
}