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.
# 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";
};