Files
dotfiles/Packages/override.nix
2021-04-03 22:06:18 +05:30

47 lines
1.5 KiB
Nix

{lib, config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(callPackage ./customscripts.nix {})
(callPackage ./mpd_discord_richpresence.nix {})
(dwm.overrideAttrs (oldAttrs: rec {
src = ./dwm;
# src = fetchFromGitHub {
# owner = "natto1784";
# repo = "dwm";
# rev = "363951cb05142f4c423af561a05658e74be7c768";
# sha256 ="003sl6w5dkycw8wcymvhi843xjngsys6qsl3fc5b9vpyd1l7i0sr";
# };
}))
(st.overrideAttrs (oldAttrs: rec {
src = ./st;
#src = fetchFromGitHub {
# owner = "natto1784";
# repo = "st";
# rev = "0cd1e394e6d07c5f605ae23070c40de9690bafb1";
# sha256 = "0riqg63aghx71v3rrpic3mxhcxqhry20312bicwbf3ks7ndl13hi";
# };
}))
(dmenu.overrideAttrs (oldAttrs: rec {
configFile = writeText "config.def.h" (builtins.readFile ./dmenu/config.def.h);
postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h";
}))
(kbd.overrideAttrs (oldAttrs: rec{
buildInputs = oldAttrs.buildInputs ++ [ gzip ];
colemak-dh = writeText "colemak-dh.map" (builtins.readFile ./colemak-dh.map);
postInstall = "${oldAttrs.postInstall}\n cp ${colemak-dh} $out/share/keymaps/i386/colemak/colemak-dh.map\n gzip $out/share/keymaps/i386/colemak/colemak-dh.map";
}))
ncmpcpp
];
nixpkgs.overlays = [
( self: super:
{
ncmpcpp = super.ncmpcpp.override {
visualizerSupport = true;
clockSupport = true;
};
}
)
];
}