moar flake

This commit is contained in:
nek0 2022-09-16 16:13:21 +02:00
parent 061532626b
commit 3ccb21c0ff
2 changed files with 52 additions and 1 deletions

42
flake.lock Normal file
View file

@ -0,0 +1,42 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1663333964,
"narHash": "sha256-xvz7pTWzm/swuOXMuX/ZE/pNVUIStr0Lizavz0DUcU4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f8cc46e4930efdad1e06e251330fbd7064b52ab5",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -11,7 +11,16 @@
let
pkgs = nixpkgs.legacyPackages.${system};
haskellPackages = pkgs.haskellPackages;
haskellPackages = pkgs.haskellPackages.override {
overrides = hself: hsuper: {
pg-transact = with pkgs.haskell.lib;
doJailbreak (unmarkBroken (dontCheck hsuper.pg-transact));
hspec-wai-json = with pkgs.haskell.lib;
doJailbreak (unmarkBroken (dontCheck hsuper.hspec-wai-json));
token-bucket = with pkgs.haskell.lib;
doJailbreak (unmarkBroken (dontCheck hsuper.token-bucket));
};
};
jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; }));