dotfiles/nix-conf/pkgs/dot-hwtr/default.nix

20 lines
542 B
Nix
Raw Normal View History

{ pkgs, lib, ... } @ pkgs_input:
pkgs.stdenv.mkDerivation {
pname = "dot-hwtr";
version = "0.0.1";
src = ./../../..; # project root
nativeBuildInputs = [
pkgs.yq
pkgs.jq
];
buildPhase = ''
# Translate alacritty.yml -> alacritty.json. Technically, yml is superset of json
yq . alacritty/alacritty.yml > alacritty/alacritty.json
'';
installPhase = ''
echo "Nothing to install. It should be available under $out/alacritty/alacritty.json"
mkdir -p $out/alacritty
cp alacritty/* $out/alacritty/
'';
2022-12-03 00:01:48 +00:00
}