mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
openafs: run nixpkgs-fmt
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
43c93f6131
commit
1a3b084c63
@ -1,7 +1,23 @@
|
||||
{ lib, stdenv, buildPackages, fetchurl, which, autoconf, automake, flex
|
||||
, bison , glibc, perl, libkrb5, libxslt, docbook_xsl, file
|
||||
, docbook_xml_dtd_43, libtool_2
|
||||
, withDevdoc ? false, doxygen, dblatex # Extra developer documentation
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPackages
|
||||
, fetchurl
|
||||
, which
|
||||
, autoconf
|
||||
, automake
|
||||
, flex
|
||||
, bison
|
||||
, glibc
|
||||
, perl
|
||||
, libkrb5
|
||||
, libxslt
|
||||
, docbook_xsl
|
||||
, file
|
||||
, docbook_xml_dtd_43
|
||||
, libtool_2
|
||||
, withDevdoc ? false
|
||||
, doxygen
|
||||
, dblatex # Extra developer documentation
|
||||
, ncurses # Extra ncurses utilities. Needed for debugging and monitoring.
|
||||
, tsmbac ? null # Tivoli Storage Manager Backup Client from IBM
|
||||
}:
|
||||
@ -10,13 +26,22 @@ with (import ./srcs.nix { inherit fetchurl; });
|
||||
let
|
||||
inherit (lib) optional optionalString optionals;
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "openafs";
|
||||
inherit version srcs;
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ autoconf automake flex libxslt libtool_2 perl
|
||||
which bison ] ++ optionals withDevdoc [ doxygen dblatex ];
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
flex
|
||||
libxslt
|
||||
libtool_2
|
||||
perl
|
||||
which
|
||||
bison
|
||||
] ++ optionals withDevdoc [ doxygen dblatex ];
|
||||
|
||||
buildInputs = [ libkrb5 ncurses ];
|
||||
|
||||
|
@ -1,5 +1,17 @@
|
||||
{ lib, stdenv, fetchurl, which, autoconf, automake, flex, bison
|
||||
, kernel, glibc, perl, libtool_2, libkrb5 }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, which
|
||||
, autoconf
|
||||
, automake
|
||||
, flex
|
||||
, bison
|
||||
, kernel
|
||||
, glibc
|
||||
, perl
|
||||
, libtool_2
|
||||
, libkrb5
|
||||
}:
|
||||
|
||||
with (import ./srcs.nix {
|
||||
inherit fetchurl;
|
||||
@ -9,7 +21,8 @@ let
|
||||
modDestDir = "$out/lib/modules/${kernel.modDirVersion}/extra/openafs";
|
||||
kernelBuildDir = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "openafs-${version}-${kernel.modDirVersion}";
|
||||
inherit version src;
|
||||
|
||||
|
@ -6,9 +6,11 @@ rec {
|
||||
sha256 = "sha256-58S+1wdbzWQC4/DC1bnb52rS7jxf1d3DlzozVsoj70Q=";
|
||||
};
|
||||
|
||||
srcs = [ src
|
||||
srcs = [
|
||||
src
|
||||
(fetchurl {
|
||||
url = "https://www.openafs.org/dl/openafs/${version}/openafs-${version}-doc.tar.bz2";
|
||||
sha256 = "sha256-y17O3C4WS+o7SMayydbxw2v96R0GikxiqciF30j+jms=";
|
||||
})];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user