about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/twm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/twm/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/misc/twm/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/twm/default.nix b/nixpkgs/pkgs/tools/misc/twm/default.nix
new file mode 100644
index 000000000000..5ad3deea1954
--- /dev/null
+++ b/nixpkgs/pkgs/tools/misc/twm/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, fetchFromGitHub
+, stdenv
+, rustPlatform
+, openssl
+, pkg-config
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "twm";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "vinnymeller";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-OUaT/JMh4JgFbzIYlU34EN7gxEydNKBXSLJfYKOeck4=";
+  };
+
+  cargoHash = "sha256-VGbY3QRkO4znEGs2daUhpDeNntONwvGeUg1ryFyWmjE=";
+
+  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";
+    changelog = "https://github.com/vinnymeller/twm/releases/tag/v${version}";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ vinnymeller ];
+  };
+}