Skip to content

Commit

Permalink
Fix rr-overlay.nix for modern nixpkgs
Browse files Browse the repository at this point in the history
Fixes the error:
```
error: anonymous function at /nix/store/lh73pszzv2569h92dn8n56cccdxyvn9g-nixos-21.11pre301985.23cd13167a1/nixos/pkgs/development/tools/analysis/rr/default.nix:1:1 called with unexpected argument 'stdenv', at /nix/store/lh73pszzv2569h92dn8n56cccdxyvn9g-nixos-21.11pre301985.23cd13167a1/nixos/lib/customisation.nix:69:16
```
`rr` in nixpkgs now expects a `gcc9Stdenv` argument instead of a `stdenv` argument.
  • Loading branch information
Twey authored and nbp committed Aug 2, 2021
1 parent 4a07484 commit 66b51ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rr-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ self: super:
{
# Add i686-linux platform as a valid target.
rr = super.rr.override {
stdenv = self.stdenv // {
mkDerivation = args: self.stdenv.mkDerivation (args // {
gcc9Stdenv = self.gcc9Stdenv // {
mkDerivation = args: self.gcc9Stdenv.mkDerivation (args // {
meta = args.meta // {
platforms = self.lib.platforms.linux;
};
Expand Down

0 comments on commit 66b51ed

Please sign in to comment.