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.writeShellApplication {
with pkgs;
writeShellApplication {
name = "build-glove80";
runtimeInputs = with pkgs; [
runtimeInputs = [
cachix
git
nix

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +1,10 @@
{ pkgs, ... }:
pkgs.vimUtils.buildVimPlugin {
with pkgs;
vimUtils.buildVimPlugin {
name = "vim-textobj-xmlattr";
src = pkgs.fetchFromGitHub {
src = fetchFromGitHub {
owner = "whatyouhide";
repo = "vim-textobj-xmlattr";
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=";
};
}