commit 261d9819e9282b31ec1eba0ab1b0830c0e0a7032
parent be8c5631ec48ac7fd5faf0f58ecb21773cba5386
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 6 Aug 2018 19:15:51 +0200
Package tmux-plugins/tpm 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -0,0 +1,12 @@
+{ system ? builtins.currentSystem }:
+
+let
+ pkgs = import <nixpkgs> { inherit system; };
+in rec {
+ prm = import ./prm {
+ inherit (pkgs) stdenv lib fetchgit;
+ };
+ tmux-tpm = import ./tmux-tpm {
+ inherit (pkgs) stdenv lib fetchFromGitHub;
+ };
+}
diff --git a/pkgs/tmux-tpm/builder.sh b/pkgs/tmux-tpm/builder.sh
@@ -0,0 +1,5 @@
+source $stdenv/setup
+
+echo $out
+mkdir -p $out
+cp -R $src/* $out/
diff --git a/pkgs/tmux-tpm/default.nix b/pkgs/tmux-tpm/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, lib, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+ name = "tmux-tpm";
+ rev = "95f78336c3972f3e6648b7b3db754f2224320a5e";
+ version = "20170902-${lib.strings.substring 0 7 rev}";
+
+ src = fetchFromGitHub {
+ inherit rev;
+ owner = "tmux-plugins";
+ repo = "tpm";
+ sha256 = "01jjbvzrjqlxxdgszkrnx4rapcqh1sh7k7y6mk42ymrzfkrbi0rd";
+ };
+
+ builder = ./builder.sh;
+
+ meta = {
+ description = "Tmux Plugin Manager";
+ homepage = "https://github.com/tmux-plugins/tpm";
+ license = lib.licenses.mit;
+ };
+}