summary refs log tree commit diff
path: root/pkgs/tools/wayland/swaycwd
diff options
context:
space:
mode:
authorVladimir Serov <me@cab404.ru>2021-10-18 17:34:38 +0300
committerVladimir Serov <me@cab404.ru>2021-10-18 18:22:30 +0300
commit5a44d082c8037d450a57084ad93600ae55e5a99c (patch)
treed7c5f263c66fa5b0cbb2dc0e88b5a6fcc68d0814 /pkgs/tools/wayland/swaycwd
parent0281ba6ace51fbf468aed8286f8c619ed25b5f01 (diff)
downloadnixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar.gz
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar.bz2
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar.lz
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar.xz
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.tar.zst
nixpkgs-5a44d082c8037d450a57084ad93600ae55e5a99c.zip
swaycwd: 0.0.1 -> 0.0.2
Co-authored-by: figsoda <figsoda@pm.me>
Diffstat (limited to 'pkgs/tools/wayland/swaycwd')
-rw-r--r--pkgs/tools/wayland/swaycwd/default.nix58
1 files changed, 30 insertions, 28 deletions
diff --git a/pkgs/tools/wayland/swaycwd/default.nix b/pkgs/tools/wayland/swaycwd/default.nix
index 401144f74d2..d8fec3fd15c 100644
--- a/pkgs/tools/wayland/swaycwd/default.nix
+++ b/pkgs/tools/wayland/swaycwd/default.nix
@@ -1,36 +1,38 @@
-{ lib, nimPackages, fetchFromGitLab
+{ lib
+, nimPackages
+, fetchFromGitLab
 , enableShells ? [ "bash" "zsh" "fish" "sh" "posh" ]
 }:
+nimPackages.buildNimPackage rec{
 
-nimPackages.buildNimPackage {
-    name = "swaycwd";
-    version = "0.0.1";
+  name = "swaycwd";
+  version = "0.0.2";
 
-    src = fetchFromGitLab {
-      owner = "cab404";
-      repo = "swaycwd";
-      rev = "aca81695ec2102b9bca6f5bae364f69a8b9d399f";
-      hash = "sha256-MkyY3wWByQo0l0J28xKDfGtxfazVPRyZHCObl9Fszh4=";
-    };
+  src = fetchFromGitLab {
+    owner = "cab404";
+    repo = name;
+    rev = "v${version}";
+    hash = "sha256-OZWOPtOqcX+fVQCxWntrn98EzFu70WH55rfYCPDMSKk=";
+  };
 
-    preConfigure = ''
-      {
-        echo 'let enabledShells: seq[string] = @${builtins.toJSON enableShells}'
-        echo 'export enabledShells'
-      } > shells.nim
-      cat << EOF > swaycwd.nimble
-      srcDir = "."
-      bin = "swaycwd"
-      EOF
-    '';
+  preConfigure = ''
+    {
+      echo 'let enabledShells: seq[string] = @${builtins.toJSON enableShells}'
+      echo 'export enabledShells'
+    } > shells.nim
+    cat << EOF > swaycwd.nimble
+    srcDir = "."
+    bin = "swaycwd"
+    EOF
+  '';
 
-    nimFlags = [ "--opt:speed" ];
+  nimFlags = [ "--opt:speed" ];
 
-    meta = with lib; {
-      homepage = "https://gitlab.com/cab404/swaycwd";
-      description = "Returns cwd for shell in currently focused sway window, or home directory if cannot find shell";
-      maintainers = with maintainers; [ cab404 ];
-      platforms = platforms.linux;
-      license = licenses.gpl3Only;
-    };
+  meta = with lib; {
+    homepage = "https://gitlab.com/cab404/swaycwd";
+    description = "Returns cwd for shell in currently focused sway window, or home directory if cannot find shell";
+    maintainers = with maintainers; [ cab404 ];
+    platforms = platforms.linux;
+    license = licenses.gpl3Only;
+  };
 }