treewide: stdenv.lib -> lib
This commit is contained in:
@@ -40,9 +40,9 @@ in stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://github.com/bit-team/backintime";
|
||||
description = "Simple backup tool for Linux";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
platforms = lib.platforms.all;
|
||||
longDescription = ''
|
||||
Back In Time is a simple backup tool (on top of rsync) for Linux
|
||||
inspired from “flyback project” and “TimeVault”. The backup is
|
||||
|
||||
@@ -19,9 +19,9 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
buildInputs = [ acl curl xz zstd ]
|
||||
++ stdenv.lib.optionals (fuseSupport) [ fuse ]
|
||||
++ stdenv.lib.optionals (selinuxSupport) [ libselinux ]
|
||||
++ stdenv.lib.optionals (udevSupport) [ udev ];
|
||||
++ lib.optionals (fuseSupport) [ fuse ]
|
||||
++ lib.optionals (selinuxSupport) [ libselinux ]
|
||||
++ lib.optionals (udevSupport) [ udev ];
|
||||
nativeBuildInputs = [ meson ninja pkgconfig python3 sphinx ];
|
||||
checkInputs = [ glibcLocales rsync ];
|
||||
|
||||
@@ -33,9 +33,9 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
|
||||
mesonFlags = stdenv.lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
|
||||
++ stdenv.lib.optionals (!udevSupport) [ "-Dudev=false" ]
|
||||
++ stdenv.lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
|
||||
mesonFlags = lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
|
||||
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
|
||||
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
|
||||
|
||||
doCheck = true;
|
||||
preCheck = ''
|
||||
|
||||
@@ -26,7 +26,7 @@ buildGoModule rec {
|
||||
rcloneBin =
|
||||
if stdenv.buildPlatform == stdenv.hostPlatform
|
||||
then "$out"
|
||||
else stdenv.lib.getBin buildPackages.rclone;
|
||||
else lib.getBin buildPackages.rclone;
|
||||
in
|
||||
''
|
||||
installManPage rclone.1
|
||||
|
||||
@@ -24,15 +24,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patchesSrc = base.upstreamPatchTarball;
|
||||
|
||||
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
||||
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
||||
srcs = [mainSrc] ++ lib.optional enableCopyDevicesPatch patchesSrc;
|
||||
patches = lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
||||
|
||||
buildInputs = [libiconv zlib popt]
|
||||
++ stdenv.lib.optional enableACLs acl
|
||||
++ stdenv.lib.optional enableZstd zstd
|
||||
++ stdenv.lib.optional enableLZ4 lz4
|
||||
++ stdenv.lib.optional enableOpenSSL openssl
|
||||
++ stdenv.lib.optional enableXXHash xxHash;
|
||||
++ lib.optional enableACLs acl
|
||||
++ lib.optional enableZstd zstd
|
||||
++ lib.optional enableLZ4 lz4
|
||||
++ lib.optional enableOpenSSL openssl
|
||||
++ lib.optional enableXXHash xxHash;
|
||||
nativeBuildInputs = [perl];
|
||||
|
||||
configureFlags = [
|
||||
@@ -48,13 +48,13 @@ stdenv.mkDerivation rec {
|
||||
# The following PR should fix the cross-compilation issue.
|
||||
# Test using `nix-build -A pkgsCross.aarch64-multiplatform.rsync`.
|
||||
# https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484
|
||||
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no"
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no"
|
||||
;
|
||||
|
||||
passthru.tests = { inherit (nixosTests) rsyncd; };
|
||||
|
||||
meta = base.meta // {
|
||||
description = "A fast incremental file transfer utility";
|
||||
maintainers = with stdenv.lib.maintainers; [ peti ehmry kampfschlaefer ];
|
||||
maintainers = with lib.maintainers; [ peti ehmry kampfschlaefer ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ stdenv.mkDerivation {
|
||||
|
||||
meta = base.meta // {
|
||||
description = "A helper to run rsync-only environments from ssh-logins";
|
||||
maintainers = [ stdenv.lib.maintainers.kampfschlaefer ];
|
||||
maintainers = [ lib.maintainers.kampfschlaefer ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchFromGitHub, ocamlPackages, fontschumachermisc, xset, makeWrapper, ncurses, gnugrep
|
||||
{lib, stdenv, fetchFromGitHub, ocamlPackages, fontschumachermisc, xset, makeWrapper, ncurses, gnugrep
|
||||
, enableX11 ? true}:
|
||||
|
||||
let inherit (ocamlPackages) ocaml lablgtk; in
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation (rec {
|
||||
makeFlags = [
|
||||
"INSTALLDIR=$(out)/bin/"
|
||||
"UISTYLE=${if enableX11 then "gtk2" else "text"}"
|
||||
] ++ stdenv.lib.optional (!ocaml.nativeCompilers) "NATIVE=false";
|
||||
] ++ lib.optional (!ocaml.nativeCompilers) "NATIVE=false";
|
||||
|
||||
preInstall = "mkdir -p $out/bin";
|
||||
|
||||
@@ -41,9 +41,9 @@ stdenv.mkDerivation (rec {
|
||||
meta = {
|
||||
homepage = "https://www.cis.upenn.edu/~bcpierce/unison/";
|
||||
description = "Bidirectional file synchronizer";
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; unix;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [viric];
|
||||
platforms = with lib.platforms; unix;
|
||||
};
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user