From 67e921d264c7832ac97e39ef73df760a20ad2b47 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 10 Feb 2020 06:45:00 +0100 Subject: programs/mpv: Fix evaluation for installPhase The package no longer[1] uses an installPhase but instead the same is now in postInstall. Since that module is pretty old I didn't use a fallback to an empty installPhase, so the evaluation fails now. Using postInstall along with a proper fallback should fix this, although I haven't tested whether $out/etc/mpv/mpv.conf is still recognised by mpv nowadays, we'll see... [1]: https://github.com/NixOS/nixpkgs/commit/542d7589568c2f3c6ac58c6e307 Signed-off-by: aszlig --- modules/user/aszlig/programs/mpv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user/aszlig/programs/mpv/default.nix b/modules/user/aszlig/programs/mpv/default.nix index ac5870f4..be09876d 100644 --- a/modules/user/aszlig/programs/mpv/default.nix +++ b/modules/user/aszlig/programs/mpv/default.nix @@ -5,8 +5,8 @@ with lib; let cfg = config.vuizvui.user.aszlig.programs.mpv; - patchedMpv = overrideDerivation pkgs.mpv (o: { - installPhase = o.installPhase + '' + patchedMpv = overrideAttrs pkgs.mpv (drv: { + postInstall = (drv.postInstall or "") + '' mkdir -p "$out/etc/mpv" cat > "$out/etc/mpv/mpv.conf" <