about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sw/sway-new-workspace
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/sw/sway-new-workspace')
-rw-r--r--nixpkgs/pkgs/by-name/sw/sway-new-workspace/package.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/sw/sway-new-workspace/package.nix b/nixpkgs/pkgs/by-name/sw/sway-new-workspace/package.nix
new file mode 100644
index 000000000000..79dcc963df71
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/sw/sway-new-workspace/package.nix
@@ -0,0 +1,27 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "sway-new-workspace";
+  version = "0.1.5";
+
+  src = fetchFromGitHub {
+    owner = "nzig";
+    repo = pname;
+    rev = version;
+    hash = "sha256-CoSfpsaGqNNR5jdAQys3nQxshI0NXXr8MacUnSTKFNo=";
+  };
+
+  cargoHash = "sha256-uGjNneIfhI49gGnH/MPTzXWjBJPdnAFggZZQfovBxDM=";
+
+  meta = with lib; {
+    description = "Command to create new Sway workpaces";
+    homepage = "https://github.com/nzig/sway-new-workspace";
+    license = licenses.mit;
+    mainProgram = "sway-new-workspace";
+    maintainers = with maintainers; [ bbenno ];
+    platforms = platforms.linux;
+  };
+}