summary refs log tree commit diff
path: root/pkgs/applications/editors/cudatext/default.nix
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@gmail.com>2021-01-29 01:15:20 +0300
committerNikolay Korotkiy <sikmir@gmail.com>2021-03-16 07:44:26 +0300
commit771f2d3d6aec124c0dd16a3d670f394de8e5e75d (patch)
treef8e541bae0cbce9efe54aab9283828e22c787056 /pkgs/applications/editors/cudatext/default.nix
parentf03cfcafbf7eee07fd4a9f6f7fab5d1203186879 (diff)
downloadnixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar.gz
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar.bz2
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar.lz
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar.xz
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.tar.zst
nixpkgs-771f2d3d6aec124c0dd16a3d670f394de8e5e75d.zip
cudatext: 1.122.3 → 1.129.3
Diffstat (limited to 'pkgs/applications/editors/cudatext/default.nix')
-rw-r--r--pkgs/applications/editors/cudatext/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/editors/cudatext/default.nix b/pkgs/applications/editors/cudatext/default.nix
index 2d9138bc32e..efb3adaaa28 100644
--- a/pkgs/applications/editors/cudatext/default.nix
+++ b/pkgs/applications/editors/cudatext/default.nix
@@ -38,13 +38,13 @@ let
 in
 stdenv.mkDerivation rec {
   pname = "cudatext";
-  version = "1.122.3";
+  version = "1.129.3";
 
   src = fetchFromGitHub {
     owner = "Alexey-T";
     repo = "CudaText";
     rev = version;
-    sha256 = "1h56hj433z0n4l97zl1cwkjv0qvz4qmvf469zzjzf1nj4zj8px2b";
+    sha256 = "1sg9wg6w3w0phrnnzpj7h2g22y0x7a3dl57djzydayxmg8fnn2ys";
   };
 
   postPatch = ''
@@ -91,7 +91,12 @@ stdenv.mkDerivation rec {
     install -Dm644 setup/debfiles/cudatext-512.png -t $out/share/pixmaps
     install -Dm644 setup/debfiles/cudatext.desktop -t $out/share/applications
   '' + lib.concatMapStringsSep "\n" (lexer: ''
-    install -Dm644 CudaText-lexers/${lexer}/*.{cuda-lexmap,lcf} $out/share/cudatext/data/lexlib
+    if [ -d "CudaText-lexers/${lexer}" ]; then
+      install -Dm644 CudaText-lexers/${lexer}/*.{cuda-lexmap,lcf} $out/share/cudatext/data/lexlib
+    else
+      echo "${lexer} lexer not found"
+      exit 1
+    fi
   '') additionalLexers;
 
   meta = with lib; {