From 18a1b409e316b1838ba3a9ef0624c6915669c7d4 Mon Sep 17 00:00:00 2001 From: Sean Parsons Date: Wed, 3 Aug 2022 21:53:56 +0100 Subject: [PATCH] Added an initial default.nix that can build webdriver-w3c. --- default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..54f4d62 --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +{ nixpkgs ? (import (builtins.fetchTarball { + name = "nixos-master"; + url = https://github.com/NixOS/nixpkgs/archive/c4a9eafb61919a075059075340bda90394d35f93.tar.gz; + # Hash obtained using `nix-prefetch-url --unpack ` + sha256 = "1rc0m28wywzkniz9y871fdv7dhml4f4xdgcfmbv5s5bicb0pyma5"; + }) {}), compiler ? "ghc8107" }: +let + pkgs = nixpkgs.pkgs; + haskLib = pkgs.haskell.lib; + overriddenHaskellPackages = pkgs.haskell.packages.${compiler}.override { + overrides = self: super: { + script-monad = haskLib.dontCheck (super.callHackage "script-monad" "0.0.4" {}); + webdriver-w3c = haskLib.dontCheck (super.callCabal2nix "webdriver-w3c" ./. {}); + }; + }; + webdriver-w3c = overriddenHaskellPackages.webdriver-w3c; +in + webdriver-w3c