stlink: inline version info

This commit is contained in:
Jon 2020-02-27 08:40:28 -08:00
parent 2936fa8f1f
commit 5341720ca7

View File

@ -3,17 +3,14 @@
# IMPORTANT: You need permissions to access the stlink usb devices. # IMPORTANT: You need permissions to access the stlink usb devices.
# Add services.udev.pkgs = [ pkgs.stlink ] to your configuration.nix # Add services.udev.pkgs = [ pkgs.stlink ] to your configuration.nix
let stdenv.mkDerivation rec {
version = "1.6.0";
in
stdenv.mkDerivation {
pname = "stlink"; pname = "stlink";
inherit version; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "texane"; owner = "texane";
repo = "stlink"; repo = "stlink";
rev = "v1.6.0"; rev = "v${version}";
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x"; sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
}; };