Convert emacs-vterm and isync-oauth2 to overlays

This commit is contained in:
coolneng 2023-01-04 12:54:58 +01:00
parent 473b942bec
commit 596963d834
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
5 changed files with 29 additions and 11 deletions

View File

@ -171,6 +171,8 @@ with pkgs;
./overlays/nix-direnv.nix ./overlays/nix-direnv.nix
./overlays/openconnect-sso.nix ./overlays/openconnect-sso.nix
./overlays/cyrus-sasl-oauth2.nix ./overlays/cyrus-sasl-oauth2.nix
./overlays/isync-oauth2.nix
./overlays/emacs-vterm.nix
]; ];
} }

View File

@ -2,13 +2,7 @@
with pkgs; with pkgs;
let {
emacs-vterm = ((emacsPackagesFor emacs28NativeComp).emacsWithPackages
(epkgs: with epkgs; [ vterm pdf-tools ]));
isync-oauth2 = isync.overrideAttrs
(div: rec { buildInputs = [ openssl patched-cyrus-sasl-oauth2 zlib ]; });
in {
# Upgrade Doom Emacs daily # Upgrade Doom Emacs daily
systemd.user.services.doom-upgrade = { systemd.user.services.doom-upgrade = {
description = "Upgrade Doom Emacs"; description = "Upgrade Doom Emacs";

View File

@ -3,10 +3,6 @@
with pkgs; with pkgs;
let let
emacs-vterm = ((emacsPackagesFor emacs28NativeComp).emacsWithPackages
(epkgs: with epkgs; [ vterm pdf-tools ]));
isync-oauth2 = isync.overrideAttrs
(div: rec { buildInputs = [ openssl db patched-cyrus-sasl-oauth2 zlib ]; });
mpv-sponsorblock = (pkgs.wrapMpv pkgs.mpv-unwrapped { mpv-sponsorblock = (pkgs.wrapMpv pkgs.mpv-unwrapped {
scripts = [ mpvScripts.sponsorblock ]; scripts = [ mpvScripts.sponsorblock ];
}); });

12
overlays/emacs-vterm.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
with pkgs;
{
nixpkgs.overlays = [
(final: prev: {
emacs-vterm = ((emacsPackagesFor emacs28NativeComp).emacsWithPackages
(epkgs: with epkgs; [ vterm pdf-tools ]));
})
];
}

14
overlays/isync-oauth2.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
with pkgs;
{
nixpkgs.overlays = [
(final: prev: {
isync-oauth2 = isync.overrideAttrs (div: rec {
buildInputs = [ openssl db patched-cyrus-sasl-oauth2 zlib ];
});
})
];
}