mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
kanif: fix source URL and build (#567764)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
autoreconfHook,
|
||||
fetchFromGitLab,
|
||||
perl,
|
||||
taktuk,
|
||||
}:
|
||||
@@ -10,12 +11,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
version = "1.2.2";
|
||||
pname = "kanif";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gforge.inria.fr/frs/download.php/26773/kanif-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "3f0c549428dfe88457c1db293cfac2a22b203f872904c3abf372651ac12e5879";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.inria.fr";
|
||||
owner = "taktuk";
|
||||
repo = "kanif";
|
||||
rev = "b6793ce4e72e6bd65f8ffaf0645a5bdd4c1c51b9"; # does not tag releases
|
||||
hash = "sha256-9xrefboBKX2eYAbxLB2ShaI7ARUkfMu9TvxCCEFH74I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
perl
|
||||
taktuk
|
||||
];
|
||||
@@ -23,6 +28,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
preBuild = ''
|
||||
substituteInPlace ./kanif --replace-fail "/usr/bin/perl" "${perl}/bin/perl"
|
||||
substituteInPlace ./kanif --replace-fail '$taktuk_command = "taktuk";' '$taktuk_command = "${taktuk}/bin/taktuk";'
|
||||
# Newer pod2man requires text after =item; a bare number is rejected.
|
||||
substituteInPlace ./kanif.pod --replace-fail '=item 0' '=item B<0>'
|
||||
substituteInPlace ./kanif.pod --replace-fail '=item 1' '=item B<1>'
|
||||
substituteInPlace ./kanif.pod --replace-fail '=item 2' '=item B<2>'
|
||||
substituteInPlace ./kanif.pod --replace-fail '=item 3' '=item B<3>'
|
||||
substituteInPlace ./kanif.pod --replace-fail '=item 4' '=item B<4>'
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
@@ -38,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
directories to several nodes ('kaput' command), and to gather several
|
||||
remote files or directories locally ('kaget' command). It relies on TakTuk
|
||||
for efficiency and scalability.'';
|
||||
homepage = "http://taktuk.gforge.inria.fr/kanif";
|
||||
homepage = "https://gitlab.inria.fr/taktuk/kanif";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ lib.maintainers.bzizou ];
|
||||
platforms = lib.platforms.linux;
|
||||
|
||||
Reference in New Issue
Block a user