Other config; added new tpm package for tmux
This commit is contained in:
3
packages/all-packages.nix
Normal file
3
packages/all-packages.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ pkgs, lib, config, ... }: rec {
|
||||
tpm = pkgs.callPackage ./tpm {};
|
||||
}
|
||||
24
packages/tpm/default.nix
Normal file
24
packages/tpm/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec {
|
||||
pname = "tpm";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tmux-plugins";
|
||||
repo = "tpm";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-CeI9Wq6tHqV68woE11lIY4cLoNY8XWyXyMHTDmFKJKI=";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
cp -rv $src/ $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tmux package manager. Installs and loads tmux plugins.";
|
||||
homepage = "https://github.com/tmux-plugins/tpm";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user