symlinks: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 22:59:04 +02:00
parent 11031d1c0c
commit ac3c391fa3

View file

@ -1,12 +1,14 @@
{ fetchurl, lib, stdenv }:
{ fetchFromGitHub, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "symlinks";
version = "1.4.3";
src = fetchurl {
url = "https://github.com/brandt/symlinks/archive/v${version}.tar.gz";
sha256 = "1cihrd3dap52z1msdhhgda7b7wy1l5ysfvyba8yxb3zjk0l5n417";
src = fetchFromGitHub {
owner = "brandt";
repo = "symlinks";
rev = "v${version}";
sha256 = "EMWd7T/k4v1uvXe2QxhyPoQKUpKIUANE9AOwX461FgU=";
};
buildFlags = [ "CC=${stdenv.cc}/bin/cc" ];