bcache-tools: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 19:08:58 +02:00
parent 004822554c
commit fd0cbc696a

View File

@ -1,13 +1,14 @@
{ lib, stdenv, fetchurl, pkg-config, util-linux, bash }:
{ lib, stdenv, fetchFromGitHub, pkg-config, util-linux, bash }:
stdenv.mkDerivation rec {
pname = "bcache-tools";
version = "1.0.7";
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://github.com/g2p/bcache-tools/archive/v${version}.tar.gz";
sha256 = "1gbsh2qw0a7kgck6w0apydiy37nnz5xvdgipa0yqrfmghl86vmv4";
src = fetchFromGitHub {
owner = "g2p";
repo = "bcache-tools";
rev = "v${version}";
hash = "sha256-Ors2xXRrVTf8Cq3BYnSVSfJy/nyGjT5BGLSNpxOcHR4=";
};
nativeBuildInputs = [ pkg-config ];