summary refs log tree commit diff
path: root/pkgs/tools/wayland/shikane
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-05-01 13:16:52 +0900
committernatsukium <tomoya.otabi@gmail.com>2023-05-13 12:52:34 +0900
commit217633348b08a5c6e49ced153a06dd8959dc7f96 (patch)
tree0f65b93d963fcac431b6acc4b230dec44e2b0d24 /pkgs/tools/wayland/shikane
parent635a306fc8ede2e34cb3dd0d6d0a5d49362150ed (diff)
downloadnixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar.gz
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar.bz2
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar.lz
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar.xz
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.tar.zst
nixpkgs-217633348b08a5c6e49ced153a06dd8959dc7f96.zip
shikane: init at 0.2.0
Diffstat (limited to 'pkgs/tools/wayland/shikane')
-rw-r--r--pkgs/tools/wayland/shikane/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/shikane/default.nix b/pkgs/tools/wayland/shikane/default.nix
new file mode 100644
index 00000000000..229217d0ac2
--- /dev/null
+++ b/pkgs/tools/wayland/shikane/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, rustPlatform
+, fetchFromGitLab
+, installShellFiles
+, pandoc
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "shikane";
+  version = "0.2.0";
+
+  src = fetchFromGitLab {
+    owner = "w0lff";
+    repo = "shikane";
+    rev = "v${version}";
+    hash = "sha256-S55elFZQT234fKlISFi21QJtnf2yB0O2u2vSNFhzgBg=";
+  };
+
+  cargoHash = "sha256-4wisXVaZa2GBFKywl48beQgg4c+lawL3L/837ZU1Y94=";
+
+  nativeBuildInputs = [
+    installShellFiles
+    pandoc
+  ];
+
+  postBuild = ''
+    bash ./scripts/build-docs.sh man
+  '';
+
+  postInstall = ''
+    installManPage ./build/shikane.*
+  '';
+
+  # upstream has no tests
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A dynamic output configuration tool that automatically detects and configures connected outputs based on a set of profiles";
+    homepage = "https://gitlab.com/w0lff/shikane";
+    changelog = "https://gitlab.com/w0lff/shikane/-/tags/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ michaelpachec0 natsukium ];
+    platforms = platforms.linux;
+  };
+}