Refactor custom packages

This commit is contained in:
Oliver Davies 2025-01-19 13:49:10 +00:00
parent e04bededf3
commit a7430169e9
16 changed files with 58 additions and 42 deletions

View file

@ -1,9 +1,11 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.writeShellApplication { with pkgs;
writeShellApplication {
name = "build-glove80"; name = "build-glove80";
runtimeInputs = with pkgs; [ runtimeInputs = [
cachix cachix
git git
nix nix

View file

@ -1,17 +1,19 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.stdenv.mkDerivation rec { with pkgs;
stdenv.mkDerivation rec {
pname = "i3-battery-popop"; pname = "i3-battery-popop";
version = "1.1.1"; version = "1.1.1";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "rjekker"; owner = "rjekker";
repo = "i3-battery-popup"; repo = "i3-battery-popup";
rev = "v${version}"; rev = "v${version}";
sha256 = "s6jZCkB0Z8dtnBG2p1NJIUY1fV4urEp4w6wFzxFNlqg="; sha256 = "s6jZCkB0Z8dtnBG2p1NJIUY1fV4urEp4w6wFzxFNlqg=";
}; };
buildInputs = with pkgs; [ bash ]; buildInputs = [ bash ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin

View file

@ -1,17 +1,19 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.stdenv.mkDerivation rec { with pkgs;
stdenv.mkDerivation rec {
pname = "notes"; pname = "notes";
version = "0.3.0"; version = "0.3.0";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "nickjj"; owner = "nickjj";
repo = "notes"; repo = "notes";
rev = "v${version}"; rev = "v${version}";
sha256 = "gyrsTWPT8w4DsRim3jlbjvpXwX/y+7SwLaM+3LVOJdU="; sha256 = "gyrsTWPT8w4DsRim3jlbjvpXwX/y+7SwLaM+3LVOJdU=";
}; };
buildInputs = with pkgs; [ bash ]; buildInputs = [ bash ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin

View file

@ -1,17 +1,19 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.stdenv.mkDerivation rec { with pkgs;
stdenv.mkDerivation {
pname = "tmux-sessonizer"; pname = "tmux-sessonizer";
version = "0.1.0"; version = "0.1.0";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "theprimeagen"; owner = "theprimeagen";
repo = "tmux-sessionizer"; repo = "tmux-sessionizer";
rev = "master"; rev = "master";
sha256 = "bZXt9TyMU1Ed/WR0/ahMQ4oyIi6yXLKnXKYPPNBt/s4="; sha256 = "bZXt9TyMU1Ed/WR0/ahMQ4oyIi6yXLKnXKYPPNBt/s4=";
}; };
buildInputs = with pkgs; [ buildInputs = [
bash bash
fzf fzf
tmux tmux

View file

@ -1,6 +1,8 @@
{ pkgs }: { pkgs }:
pkgs.writeShellApplication { with pkgs;
writeShellApplication {
name = "upload-to-files"; name = "upload-to-files";
text = '' text = ''

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "conf-vim"; name = "conf-vim";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "tjdevries"; owner = "tjdevries";
repo = "conf.vim"; repo = "conf.vim";
rev = "master"; rev = "master";

View file

@ -10,5 +10,4 @@
vim-heritage = callPackage ./vim-heritage.nix { }; vim-heritage = callPackage ./vim-heritage.nix { };
vim-textobj-indent = callPackage ./vim-textobj-indent.nix { }; vim-textobj-indent = callPackage ./vim-textobj-indent.nix { };
vim-textobj-xmlattr = callPackage ./vim-textobj-xmlattr.nix { }; vim-textobj-xmlattr = callPackage ./vim-textobj-xmlattr.nix { };
vim-zoom = callPackage ./vim-zoom.nix { };
} }

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "edit-alternate-vim"; name = "edit-alternate-vim";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "tjdevries"; owner = "tjdevries";
repo = "edit_alternate.vim"; repo = "edit_alternate.vim";
rev = "master"; rev = "master";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "nvim-tmux-navigation"; name = "nvim-tmux-navigation";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "alexghergh"; owner = "alexghergh";
repo = "nvim-tmux-navigation"; repo = "nvim-tmux-navigation";
rev = "4898c98702954439233fdaf764c39636681e2861"; rev = "4898c98702954439233fdaf764c39636681e2861";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "standard-vim"; name = "standard-vim";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "tjdevries"; owner = "tjdevries";
repo = "standard.vim"; repo = "standard.vim";
rev = "master"; rev = "master";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "vim-autoread"; name = "vim-autoread";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "djoshea"; owner = "djoshea";
repo = "vim-autoread"; repo = "vim-autoread";
rev = "24061f84652d768bfb85d222c88580b3af138dab"; rev = "24061f84652d768bfb85d222c88580b3af138dab";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "vim-caser"; name = "vim-caser";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "arthurxavierx"; owner = "arthurxavierx";
repo = "vim-caser"; repo = "vim-caser";
rev = "6bc9f41d170711c58e0157d882a5fe8c30f34bf6"; rev = "6bc9f41d170711c58e0157d882a5fe8c30f34bf6";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "vim-heritage"; name = "vim-heritage";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "jessarcher"; owner = "jessarcher";
repo = "vim-heritage"; repo = "vim-heritage";
rev = "cffa05c78c0991c998adc4504d761b3068547db6"; rev = "cffa05c78c0991c998adc4504d761b3068547db6";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "vim-textobj-indent"; name = "vim-textobj-indent";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "kana"; owner = "kana";
repo = "vim-textobj-indent"; repo = "vim-textobj-indent";
rev = "deb76867c302f933c8f21753806cbf2d8461b548"; rev = "deb76867c302f933c8f21753806cbf2d8461b548";

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
pkgs.vimUtils.buildVimPlugin { with pkgs;
vimUtils.buildVimPlugin {
name = "vim-textobj-xmlattr"; name = "vim-textobj-xmlattr";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "whatyouhide"; owner = "whatyouhide";
repo = "vim-textobj-xmlattr"; repo = "vim-textobj-xmlattr";
rev = "694a297f1d75fd527e87da9769f3c6519a87ebb1"; rev = "694a297f1d75fd527e87da9769f3c6519a87ebb1";

View file

@ -1,11 +0,0 @@
{ pkgs, ... }:
pkgs.vimUtils.buildVimPlugin {
name = "vim-zoom";
src = pkgs.fetchFromGitHub {
owner = "dhruvasagar";
repo = "vim-zoom";
rev = "01c737005312c09e0449d6518decf8cedfee32c7";
sha256 = "/ADzScsG0u6RJbEtfO23Gup2NYdhPkExqqOPVcQa7aQ=";
};
}