[Nix-dev] Overriding by removing a derivation attribute
Daniel Bergey
bergey at teallabs.org
Tue Mar 1 23:39:05 CET 2016
I think I recall using this combination:
revision = null;
editedCabalFile = null;
bergey
On 2016-03-01 at 16:54, Kosyrev Serge <_deepfire at feelingofgreen.ru> wrote:
> I want to override a Haskell derivation, but in the particular case
> it is not enough to change the 'src' attribute -- I also need to stop the
> derivation supplying an alternate .cabal file:
>
> aeson = haskell.lib.overrideCabal old.aeson (oldAttrs: {
> editedCabalFile = null; # <----
> src = pkgs.fetchgit {
> url = https://github.com/bos/aeson;
> rev = "d9f1ad357e5dc28c381099814e7cce0e68cf2b6a";
> sha256 = "0nzajw4ia2s7kjjygw9xddrfa1aq2kq960bm9wgj8b34manmyh0f";
> };
> });
>
> Naturally, this doesn't work as desired (the file still gets supplied),
> and so the question is -- how is one supposed to achieve that?
>
> --
> с уважениeм / respectfully,
> Косырев Сергей
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list