Browse Source

Hack to override a broken package

master
Peter J. Jones 1 year ago
parent
commit
76d9400d1a
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 12 additions and 1 deletions
  1. 12
    1
      default.nix

+ 12
- 1
default.nix View File

@@ -2,9 +2,20 @@ let
# If no package source is specified then default to this URL:
commit = "5b8a24a40ce11bbe1cb6ebf33ddb5adaaebbd43a";
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs-channels/tarball/${commit}";

# Helper function to override Haskell packages:
haskellOverride = pkgs:
pkgs.haskellPackages.override (orig: {
overrides = pkgs.lib.composeExtensions
(orig.overrides or (_: _: {}))
(self: super: with pkgs.haskell.lib; {
table-layout = dontCheck (doJailbreak super.table-layout);
});
});

in

{ pkgs ? (import nixpkgs {}).pkgs
}:

pkgs.haskellPackages.callPackage ./personal-webhooks.nix { }
(haskellOverride pkgs).callPackage ./personal-webhooks.nix { }

Loading…
Cancel
Save