git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12873 from ericsagnes/feat/i3

i3: move dependencies to runtime

commit89fa4724f188d2950203446e91720b3880c5d9c3 authorDomen Kožar <domen@dev.si> dateMon 8 Feb 2016, 13:16 (11 years ago) parent4b18353f03ce60
2 files changed+9−2
nixos/modules/services/x11/window-managers/i3.nix+1−1 pkgs/applications/window-managers/i3/default.nix+8−1
nixos/modules/services/x11/window-managers/i3.nix+1−1
@@ -34,6 +34,6 @@ in
3434 '';
3535 }];
3636 };
37− environment.systemPackages = with pkgs; [ i3 i3status dmenu ];
37+ environment.systemPackages = with pkgs; [ i3 ];
3838 };
3939}
pkgs/applications/window-managers/i3/default.nix+8−1
@@ -1,7 +1,7 @@
11{ fetchurl, stdenv, which, pkgconfig, makeWrapper, libxcb, xcbutilkeysyms
22, xcbutil, xcbutilwm, libstartup_notification, libX11, pcre, libev, yajl
33, xcb-util-cursor, coreutils, perl, pango, perlPackages, libxkbcommon
4−, xorgserver, xvfb_run }:
4+, xorgserver, xvfb_run, dmenu, i3status }:
55
66stdenv.mkDerivation rec {
77 name = "i3-${version}";
@@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
2424 patchShebangs .
2525 '';
2626
27+ postFixup = ''
28+ substituteInPlace $out/etc/i3/config --replace dmenu_run ${dmenu}/bin/dmenu_run
29+ substituteInPlace $out/etc/i3/config --replace "status_command i3status" "status_command ${i3status}/bin/i3status"
30+ substituteInPlace $out/etc/i3/config.keycodes --replace dmenu_run ${dmenu}/bin/dmenu_run
31+ substituteInPlace $out/etc/i3/config.keycodes --replace "status_command i3status" "status_command ${i3status}/bin/i3status"
32+ '';
33+
2734 # Tests have been failing (at least for some people in some cases)
2835 # and have been disabled until someone wants to fix them. Some
2936 # initial digging uncovers that the tests call out to `git`, which