1{
2 stdenvNoCC,
3 fetchurl,
4}:
5stdenvNoCC.mkDerivation {
6 name = "qtile-extras-config";
7 version = "0.0.1";
8
9 src = fetchurl {
10 url = "https://raw.githubusercontent.com/qtile/qtile/v0.28.1/libqtile/resources/default_config.py";
11 hash = "sha256-Y5W277CWVNSi4BdgEW/f7Px/MMjnN9W9TDqdOncVwPc=";
12 };
13
14 prePatch = ''
15 cp $src config.py
16 '';
17
18 patches = [
19 ./add-widget.patch
20 ./add-startup-hook.patch
21 ];
22
23 dontUnpack = true;
24 dontBuild = true;
25
26 installPhase = ''
27 mkdir -p $out
28 cp config.py $out/config.py
29 '';
30}