about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorVinny Meller <vinnymeller@gmail.com>2023-04-13 02:57:17 -0500
committerVinny Meller <vinnymeller@gmail.com>2023-04-13 03:32:38 -0500
commit4ba25efc4e780b12b8e9768c297a23ddbb133e28 (patch)
treea26ac3a213d7ea3d126e29e684068adc842400ca /pkgs/tools
parentbb0c3de2a9b2d20bc2a110250f2476fa6f0bca6e (diff)
twm: init at 0.1.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/twm/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/misc/twm/default.nix b/pkgs/tools/misc/twm/default.nix
new file mode 100644
index 0000000000000..9109547a1d33c
--- /dev/null
+++ b/pkgs/tools/misc/twm/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, fetchFromGitHub
+, stdenv
+, rustPlatform
+, openssl
+, pkg-config
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "twm";
+  version = "0.1.1";
+
+  src = fetchFromGitHub {
+    owner = "vinnymeller";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-YURzNHbmGLEqNEcc4FImIqn/KcRwGdxYXM5QzM3dxbo=";
+  };
+
+  cargoHash = "sha256-sc2/eQZjY1x5KIzQ+yr8NgAMKJ6iHWwCy6fRSBp7Fw4=";
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
+
+  meta = with lib; {
+    description = "A customizable workspace manager for tmux";
+    homepage = "https://github.com/vinnymeller/twm";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ vinnymeller ];
+  };
+}