lol

Merge pull request #41732 from Infinisil/overrideDerivation

some overrideDerivation cleanups

authored by

Matthew Justin Bauer and committed by
GitHub
a006243b 2624f907

+12 -22
+3 -5
pkgs/applications/window-managers/i3/gaps.nix
··· 1 1 { fetchurl, stdenv, i3, autoreconfHook }: 2 2 3 - i3.overrideDerivation (super : rec { 3 + i3.overrideAttrs (oldAttrs : rec { 4 4 5 5 name = "i3-gaps-${version}"; 6 6 version = "4.15.0.1"; ··· 11 11 sha256 = "16s6bink8yj3zix4vww64b745d5drf2vqjg8vz3pwzrark09hfal"; 12 12 }; 13 13 14 - nativeBuildInputs = super.nativeBuildInputs ++ [ autoreconfHook ]; 14 + nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ autoreconfHook ]; 15 15 16 16 postUnpack = '' 17 17 echo -n "${version} (${releaseDate})" > ./i3-${version}/I3_VERSION ··· 19 19 20 20 # fatal error: GENERATED_config_enums.h: No such file or directory 21 21 enableParallelBuilding = false; 22 - }) // { 23 22 24 23 meta = with stdenv.lib; { 25 24 description = "A fork of the i3 tiling window manager with some additional features"; ··· 36 35 Configured via plain text file. Multi-monitor. UTF-8 clean. 37 36 ''; 38 37 }; 39 - 40 - } 38 + })
+5 -7
pkgs/development/interpreters/luajit/default.nix
··· 7 7 version = "2.0.5"; 8 8 isStable = true; 9 9 sha256 = "0yg9q4q6v028bgh85317ykc9whgxgysp76qzaqgq55y6jy11yjw7"; 10 - } // { 11 - # 64-bit ARM isn't supported upstream 12 - meta = meta // { 13 - platforms = lib.filter (p: p != "aarch64-linux") meta.platforms; 10 + meta = genericMeta // { 11 + platforms = lib.filter (p: p != "aarch64-linux") genericMeta.platforms; 14 12 }; 15 13 }; 16 14 ··· 20 18 sha256 = "1hyrhpkwjqsv54hnnx4cl8vk44h9d6c9w0fz1jfjz00w255y7lhs"; 21 19 }; 22 20 23 - 24 - meta = with stdenv.lib; { 21 + genericMeta = with stdenv.lib; { 25 22 description = "High-performance JIT compiler for Lua 5.1"; 26 23 homepage = http://luajit.org; 27 24 license = licenses.mit; 28 25 platforms = platforms.linux ++ platforms.darwin; 29 - maintainers = with maintainers ; [ thoughtpolice smironov vcunat andir ]; 26 + maintainers = with maintainers; [ thoughtpolice smironov vcunat andir ]; 30 27 }; 31 28 32 29 generic = ··· 37 34 url = "http://luajit.org/download/LuaJIT-${version}.tar.gz"; 38 35 inherit sha256; 39 36 }) 37 + , meta ? genericMeta 40 38 }: 41 39 42 40 stdenv.mkDerivation rec {
+2 -3
pkgs/development/libraries/libcollectdclient/default.nix
··· 1 1 { stdenv, fetchurl, collectd }: 2 2 with stdenv.lib; 3 3 4 - overrideDerivation collectd (oldAttrs: { 4 + collectd.overrideAttrs (oldAttrs: { 5 5 name = "libcollectdclient-${collectd.version}"; 6 6 buildInputs = [ ]; 7 7 ··· 16 16 17 17 postInstall = "rm -rf $out/{bin,etc,sbin,share}"; 18 18 19 - }) // { 20 19 meta = with stdenv.lib; { 21 20 description = "C Library for collectd, a daemon which collects system performance statistics periodically"; 22 21 homepage = http://collectd.org; ··· 24 23 platforms = platforms.linux; # TODO: collectd may be linux but the C client may be more portable? 25 24 maintainers = [ maintainers.sheenobu maintainers.bjornfor ]; 26 25 }; 27 - } 26 + })
+2 -7
pkgs/servers/x11/xorg/xwayland.nix
··· 1 - 2 1 { stdenv, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config, epoxy, libxslt, libunwind, makeWrapper }: 3 2 4 3 with stdenv.lib; 5 4 6 - overrideDerivation xorgserver (oldAttrs: { 5 + xorgserver.overrideAttrs (oldAttrs: { 7 6 8 7 name = "xwayland-${xorgserver.version}"; 9 8 propagatedBuildInputs = oldAttrs.propagatedBuildInputs ··· 28 27 rm -fr $out/share/X11/xkb/compiled 29 28 ''; 30 29 31 - }) // { 32 30 meta = { 33 31 description = "An X server for interfacing X11 apps with the Wayland protocol"; 34 32 homepage = http://wayland.freedesktop.org/xserver.html; 35 33 license = licenses.mit; 36 34 platforms = platforms.linux; 37 35 }; 38 - } 39 - 40 - 41 - 36 + })