diff options
author | aszlig <aszlig@nix.build> | 2020-02-10 06:45:00 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2020-02-10 06:45:00 +0100 |
commit | 67e921d264c7832ac97e39ef73df760a20ad2b47 (patch) | |
tree | 0e2e414c58f59622be7e8b2fdab7d25f9639fe78 | |
parent | 502a9b1d9463c6d6b577506e713035b9cd2df96d (diff) |
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 <aszlig@nix.build>
-rw-r--r-- | modules/user/aszlig/programs/mpv/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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" <<CONFIG ao=pulse |