bcache-tools: switch to fetchFromGitHub

+6 -5
+6 -5
pkgs/tools/filesystems/bcache-tools/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, util-linux, bash }: 2 3 stdenv.mkDerivation rec { 4 pname = "bcache-tools"; 5 version = "1.0.7"; 6 7 - src = fetchurl { 8 - name = "${pname}-${version}.tar.gz"; 9 - url = "https://github.com/g2p/bcache-tools/archive/v${version}.tar.gz"; 10 - sha256 = "1gbsh2qw0a7kgck6w0apydiy37nnz5xvdgipa0yqrfmghl86vmv4"; 11 }; 12 13 nativeBuildInputs = [ pkg-config ];
··· 1 + { lib, stdenv, fetchFromGitHub, pkg-config, util-linux, bash }: 2 3 stdenv.mkDerivation rec { 4 pname = "bcache-tools"; 5 version = "1.0.7"; 6 7 + src = fetchFromGitHub { 8 + owner = "g2p"; 9 + repo = "bcache-tools"; 10 + rev = "v${version}"; 11 + hash = "sha256-Ors2xXRrVTf8Cq3BYnSVSfJy/nyGjT5BGLSNpxOcHR4="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ];