From 2f4ea13ca2a76641052216139cc6267ca959ae0d Mon Sep 17 00:00:00 2001 From: sterni Date: Sat, 10 Apr 2021 23:30:09 +0200 Subject: refactor(users/grfn): build all haskell packages without ifd Since we need to override random to 1.2.0 globally for xanthous (otherwise propagation causes two versions of random to be propagated for xanthous) evaluating haskell related stuff using import from derivation can be very expensive since utilities like hpack and cabal2nix need to be built for that. This means that for every channel bump we potentially need to do a world rebuild of haskellPackages first. To solve this we check in the cabal2nix-generated nix expressions for owothia and xanthous. Change-Id: I8fff70b4b6c303d1920f8bcac53520a09999b206 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2921 Tested-by: BuildkiteCI Reviewed-by: grfn Reviewed-by: tazjin --- users/grfn/owothia/pkg.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 users/grfn/owothia/pkg.nix (limited to 'users/grfn/owothia/pkg.nix') diff --git a/users/grfn/owothia/pkg.nix b/users/grfn/owothia/pkg.nix new file mode 100644 index 000000000000..d0941a848958 --- /dev/null +++ b/users/grfn/owothia/pkg.nix @@ -0,0 +1,16 @@ +{ mkDerivation, base, bytestring, chatter, containers, envy +, irc-client, lens, lib, random, relude, text +}: +mkDerivation { + pname = "owothia"; + version = "0.0.1.0"; + src = ./.; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + base bytestring chatter containers envy irc-client lens random + relude text + ]; + license = "unknown"; + hydraPlatforms = lib.platforms.none; +} -- cgit 1.4.1