about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorJon <jonringer@users.noreply.github.com>2020-02-27 08:40:28 -0800
committerJon <jonringer@users.noreply.github.com>2020-02-27 10:31:19 -0800
commit5341720ca7be5240957ae916c3f831b4326ef7dc (patch)
tree24d67ca06732e1dc1c0c46e297277f8543ae53e3 /pkgs/development/tools
parent2936fa8f1f5c5d0ee8691ebadc9ba497ff3cb1ab (diff)
downloadnixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar.gz
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar.bz2
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar.lz
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar.xz
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.tar.zst
nixlib-5341720ca7be5240957ae916c3f831b4326ef7dc.zip
stlink: inline version info
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/stlink/default.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/tools/misc/stlink/default.nix b/pkgs/development/tools/misc/stlink/default.nix
index 56332a12dc1b..c59847b1e0f7 100644
--- a/pkgs/development/tools/misc/stlink/default.nix
+++ b/pkgs/development/tools/misc/stlink/default.nix
@@ -3,17 +3,14 @@
 # IMPORTANT: You need permissions to access the stlink usb devices. 
 # Add services.udev.pkgs = [ pkgs.stlink ] to your configuration.nix
 
-let
-  version = "1.6.0";
-in
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   pname = "stlink";
-  inherit version;
+  version = "1.6.0";
 
   src = fetchFromGitHub {
     owner = "texane";
     repo = "stlink";
-    rev = "v1.6.0";
+    rev = "v${version}";
     sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
   };