blink1-tool: switch to fetchFromGitHub
This commit is contained in:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user