mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
bird2: switch from fetching tarball to fetchFromGitLab
To my understanding it's current best practice to fetch from a project's git repo and not use tarballs to avoid situations where the tarball isn't as expected. Since this change seems to be trivial for bird i've implemented it here.
This commit is contained in:
parent
ad331efcaf
commit
1c2e5e194f
1 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
flex,
|
||||
bison,
|
||||
readline,
|
||||
|
@ -13,15 +14,20 @@ stdenv.mkDerivation rec {
|
|||
pname = "bird";
|
||||
version = "2.17.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bird.network.cz/download/bird-${version}.tar.gz";
|
||||
hash = "sha256-v9cY36WWgZs4AWiHgyElFLRnFjMprsm7zQ+j3uA+EOk=";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.nic.cz";
|
||||
owner = "labs";
|
||||
repo = "bird";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-9Zg3UmNEW+Q26PMj3Z1XDbPFC5vatX8i7RQSUlKXlwg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
flex
|
||||
bison
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
readline
|
||||
libssh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue