summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-30 23:06:30 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-30 23:06:30 +0100
commite296ce8cff9917d69a1f234e92cecba3000eafb2 (patch)
tree026639a76dc548274190911d99ce3f0d65562e57
parentfeat(soispha/keymap): Actually send a keycode to start the application (diff)
downloadqmk_layout-e296ce8cff9917d69a1f234e92cecba3000eafb2.zip
fix(scripts/deploy.sh): Correctly increment the version
-rw-r--r--package.nix2
-rwxr-xr-xscripts/deployed.sh5
-rw-r--r--version.nix2
3 files changed, 6 insertions, 3 deletions
diff --git a/package.nix b/package.nix
index fa66674..5c3d23f 100644
--- a/package.nix
+++ b/package.nix
@@ -29,7 +29,7 @@
     requirements.txt
   '';
 
-  version = import ./version.nix;
+  version = builtins.toString (import ./version.nix);
 in
   stdenv.mkDerivation
   {
diff --git a/scripts/deployed.sh b/scripts/deployed.sh
index c92693b..fad11e5 100755
--- a/scripts/deployed.sh
+++ b/scripts/deployed.sh
@@ -2,7 +2,10 @@
 
 version="$(nix eval --file ./version.nix)"
 
-echo "\"$((version + 1))\"" >./version.nix
+cat >./version.nix <<EOF
+# NOTE: Change this _EVERY_ time you actually use a new keymap. <2024-12-29>
+$((version + 1))
+EOF
 
 cp ./result/binary_output/zsa_moonlander_* deployes/
 
diff --git a/version.nix b/version.nix
index e60a901..a2a15e7 100644
--- a/version.nix
+++ b/version.nix
@@ -1,2 +1,2 @@
 # NOTE: Change this _EVERY_ time you actually use a new keymap. <2024-12-29>
-"26"
+26