Files
tawm/pkgs/nvchad/default.nix
2024-03-01 18:43:50 +05:30

31 lines
594 B
Nix

{ lib, stdenv, pkgs }:
let
custom = ./custom;
in
stdenv.mkDerivation {
pname = "nvchad";
version = "2.0.0";
src = pkgs.fetchFromGitHub {
owner = "NvChad";
repo = "NvChad";
rev = "refs/heads/v2.0";
sha256 = "sha256-x1y2SkoLNwu0NzmnKxUfl5UQG+SIcW87FhpyZMEHuU8=";
};
installPhase = ''
mkdir $out
cp -r * "$out/"
mkdir -p "$out/lua/custom"
cp -r ${custom}/* "$out/lua/custom/"
'';
meta = with lib; {
description = "NvChad";
homepage = "https://github.com/NvChad/NvChad";
platforms = platforms.all;
license = licenses.gpl3;
};
}