From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH 2/2] gnu: Remove ghc-parsec, ghc-stm, ghc-text, ghc-xhtml. Date: Sat, 06 Jul 2019 10:21:57 +0200 Message-ID: <875zofshcq.fsf@elephly.net> References: <20190704075731.56259-1-rob@vllmrt.net> <20190704075731.56259-2-rob@vllmrt.net> <9386C77D-E668-4AE4-B162-20CB451EEBDF@vllmrt.net> <87wogyrqcq.fsf@elephly.net> <6B2C662C-48A9-41BD-A25C-9DA1868F1E5D@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40188) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjfxQ-0007bi-Mi for guix-devel@gnu.org; Sat, 06 Jul 2019 04:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjfxP-0002E7-NL for guix-devel@gnu.org; Sat, 06 Jul 2019 04:22:08 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjfxP-0002Cq-C6 for guix-devel@gnu.org; Sat, 06 Jul 2019 04:22:07 -0400 In-reply-to: <6B2C662C-48A9-41BD-A25C-9DA1868F1E5D@vllmrt.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Robert Vollmert Cc: guix-devel@gnu.org, 36493@debbugs.gnu.org Hi Robert, > Could we do something in guix like what nixpkgs does, where the dependenc= ies > are encoded, but then =E2=80=9Cnulled=E2=80=9D depending on the compiler = version? > > https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-mod= ules/configuration-ghc-8.4.x.nix#L10 Yes, we could do this in the haskell-build-system (automatically removing inputs before the build is set up). My first reaction was =E2=80=9Cthis is inelegant=E2=80=9D, but it does have some advantages: we c= ould rebuild packages with other versions of GHC more easily and it would just work without having to adjust the inputs manually. I think this would be done in guix/build-system/haskell.scm, the =E2=80=9Chaskell-build=E2=80=9D procedure. There we pass all inputs unchan= ged through to build-expression->derivation. I guess we could filter inputs right there. -- Ricardo