blink1-tool: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler
2021-12-23 19:11:15 +01:00
parent ea1ac9af24
commit 97fd49172d
+6 -4
View File
@@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, libusb1, pkg-config, ... }:
{ lib, stdenv, fetchFromGitHub, libusb1, pkg-config, ... }:
stdenv.mkDerivation rec {
pname = "blink1";
version = "1.98a";
src = fetchurl {
url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
src = fetchFromGitHub {
owner = "todbot";
repo = "blink1";
rev = "v${version}";
sha256 = "sha256-o4pOF6Gp70AL63ih6BNOpRTCs7+qzeZrEqaR4hYDTG8=";
};
nativeBuildInputs = [ pkg-config ];