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