Skip to content

Commit

Permalink
modules/nix: use self/super for overrideAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Aug 23, 2023
1 parent 24219d1 commit ccdac40
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,32 +91,32 @@
greetd =
prev.greetd
// {
regreet = prev.greetd.regreet.overrideAttrs (oldAttrs: rec {
regreet = prev.greetd.regreet.overrideAttrs (self: super: rec {
version = "0.1.1-patched";
src = prev.fetchFromGitHub {
owner = "rharish101";
repo = "ReGreet";
rev = "61d871a0ee5c74230dfef8100d0c9bc75b309203";
hash = "sha256-PkQTubSm/FN3FXs9vBB3FI4dXbQhv/7fS1rXkVsTAAs=";
};
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (_: {
cargoDeps = super.cargoDeps.overrideAttrs (_: {
inherit src;
outputHash = "sha256-dR6veXCGVMr5TbCvP0EqyQKTG2XM65VHF9U2nRWyzfA=";
});

# temp fix until https://github.com/NixOS/nixpkgs/pull/249384 is merged
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [prev.wrapGAppsHook];
buildInputs = oldAttrs.buildInputs ++ [prev.librsvg];
nativeBuildInputs = super.nativeBuildInputs ++ [prev.wrapGAppsHook];
buildInputs = super.buildInputs ++ [prev.librsvg];

# temp fix until https://github.com/rharish101/ReGreet/issues/32 is solved
patches = [../pkgs/regreet.patch];
});
};

# temp fix until https://github.com/NixOS/nixpkgs/pull/249382 is merged
gtklock = prev.gtklock.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [prev.wrapGAppsHook];
buildInputs = old.buildInputs ++ [prev.librsvg];
gtklock = prev.gtklock.overrideAttrs (self: super: {
nativeBuildInputs = super.nativeBuildInputs ++ [prev.wrapGAppsHook];
buildInputs = super.buildInputs ++ [prev.librsvg];
});
}
)
Expand Down

0 comments on commit ccdac40

Please sign in to comment.