mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 17:54:53 +01:00
31 lines
543 B
Nix
31 lines
543 B
Nix
{
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
name = "qtile-extras-config";
|
|
version = "0.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://raw.githubusercontent.com/qtile/qtile/v0.28.1/libqtile/resources/default_config.py";
|
|
hash = "sha256-Y5W277CWVNSi4BdgEW/f7Px/MMjnN9W9TDqdOncVwPc=";
|
|
};
|
|
|
|
prePatch = ''
|
|
cp $src config.py
|
|
'';
|
|
|
|
patches = [
|
|
./add-widget.patch
|
|
./add-startup-hook.patch
|
|
];
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp config.py $out/config.py
|
|
'';
|
|
}
|