git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41732 from Infinisil/overrideDerivation

some overrideDerivation cleanups

commita006243b8d873292868d323054792d9361175cd9 authorMatthew Justin Bauer <mjbauer95@gmail.com> dateFri 22 Jun 2018, 20:07 (8 years ago) parent2624f9002f11bc
4 files changed+12−22
pkgs/applications/window-managers/i3/gaps.nix+3−5 pkgs/development/interpreters/luajit/default.nix+5−7 pkgs/development/libraries/libcollectdclient/default.nix+2−3 pkgs/servers/x11/xorg/xwayland.nix+2−7
pkgs/applications/window-managers/i3/gaps.nix+3−5
@@ -1,6 +1,6 @@
11{ fetchurl, stdenv, i3, autoreconfHook }:
22
3−i3.overrideDerivation (super : rec {
3+i3.overrideAttrs (oldAttrs : rec {
44
55 name = "i3-gaps-${version}";
66 version = "4.15.0.1";
@@ -11,7 +11,7 @@ i3.overrideDerivation (super : rec {
1111 sha256 = "16s6bink8yj3zix4vww64b745d5drf2vqjg8vz3pwzrark09hfal";
1212 };
1313
14− nativeBuildInputs = super.nativeBuildInputs ++ [ autoreconfHook ];
14+ nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ autoreconfHook ];
1515
1616 postUnpack = ''
1717 echo -n "${version} (${releaseDate})" > ./i3-${version}/I3_VERSION
@@ -19,7 +19,6 @@ i3.overrideDerivation (super : rec {
1919
2020 # fatal error: GENERATED_config_enums.h: No such file or directory
2121 enableParallelBuilding = false;
22−}) // {
2322
2423 meta = with stdenv.lib; {
2524 description = "A fork of the i3 tiling window manager with some additional features";
@@ -36,5 +35,4 @@ i3.overrideDerivation (super : rec {
3635 Configured via plain text file. Multi-monitor. UTF-8 clean.
3736 '';
3837 };
39−
40−}
38+})
pkgs/development/interpreters/luajit/default.nix+5−7
@@ -7,10 +7,8 @@ rec {
77 version = "2.0.5";
88 isStable = true;
99 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;
1412 };
1513 };
1614
@@ -20,13 +18,12 @@ rec {
2018 sha256 = "1hyrhpkwjqsv54hnnx4cl8vk44h9d6c9w0fz1jfjz00w255y7lhs";
2119 };
2220
23−
24− meta = with stdenv.lib; {
21+ genericMeta = with stdenv.lib; {
2522 description = "High-performance JIT compiler for Lua 5.1";
2623 homepage = http://luajit.org;
2724 license = licenses.mit;
2825 platforms = platforms.linux ++ platforms.darwin;
29− maintainers = with maintainers ; [ thoughtpolice smironov vcunat andir ];
26+ maintainers = with maintainers; [ thoughtpolice smironov vcunat andir ];
3027 };
3128
3229 generic =
@@ -37,6 +34,7 @@ rec {
3734 url = "http://luajit.org/download/LuaJIT-${version}.tar.gz";
3835 inherit sha256;
3936 })
37+ , meta ? genericMeta
4038 }:
4139
4240 stdenv.mkDerivation rec {
pkgs/development/libraries/libcollectdclient/default.nix+2−3
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, collectd }:
22with stdenv.lib;
33
4−overrideDerivation collectd (oldAttrs: {
4+collectd.overrideAttrs (oldAttrs: {
55 name = "libcollectdclient-${collectd.version}";
66 buildInputs = [ ];
77
@@ -16,7 +16,6 @@ overrideDerivation collectd (oldAttrs: {
1616
1717 postInstall = "rm -rf $out/{bin,etc,sbin,share}";
1818
19−}) // {
2019 meta = with stdenv.lib; {
2120 description = "C Library for collectd, a daemon which collects system performance statistics periodically";
2221 homepage = http://collectd.org;
@@ -24,4 +23,4 @@ overrideDerivation collectd (oldAttrs: {
2423 platforms = platforms.linux; # TODO: collectd may be linux but the C client may be more portable?
2524 maintainers = [ maintainers.sheenobu maintainers.bjornfor ];
2625 };
27−}
26+})
pkgs/servers/x11/xorg/xwayland.nix+2−7
@@ -1,9 +1,8 @@
1−
21{ stdenv, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config, epoxy, libxslt, libunwind, makeWrapper }:
32
43with stdenv.lib;
54
6−overrideDerivation xorgserver (oldAttrs: {
5+xorgserver.overrideAttrs (oldAttrs: {
76
87 name = "xwayland-${xorgserver.version}";
98 propagatedBuildInputs = oldAttrs.propagatedBuildInputs
@@ -28,14 +27,10 @@ overrideDerivation xorgserver (oldAttrs: {
2827 rm -fr $out/share/X11/xkb/compiled
2928 '';
3029
31−}) // {
3230 meta = {
3331 description = "An X server for interfacing X11 apps with the Wayland protocol";
3432 homepage = http://wayland.freedesktop.org/xserver.html;
3533 license = licenses.mit;
3634 platforms = platforms.linux;
3735 };
38−}
39−
40−
41−
36+})