pkgs/shells: stdenv.lib -> lib
This commit is contained in:
parent
f35b06e86d
commit
e245ae3c3a
|
@ -6,7 +6,7 @@
|
|||
, withDocs ? false, texinfo ? null
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
assert interactive -> readline70 != null;
|
||||
assert withDocs -> texinfo != null;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
, texinfo ? null
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
assert interactive -> readline80 != null;
|
||||
assert withDocs -> texinfo != null;
|
||||
|
|
|
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
|
|||
# - ignore test_screen because it assumes vt terminals exist
|
||||
checkPhase = ''
|
||||
pytest . \
|
||||
${stdenv.lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) "--ignore=test/t/test_gcc.py"} \
|
||||
${lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) "--ignore=test/t/test_gcc.py"} \
|
||||
--ignore=test/t/test_chsh.py \
|
||||
--ignore=test/t/test_ether_wake.py \
|
||||
--ignore=test/t/test_ifdown.py \
|
||||
|
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
|||
--ignore=test/t/test_screen.py
|
||||
'';
|
||||
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
|
||||
'';
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ stdenv.mkDerivation rec {
|
|||
url = "https://git.kernel.org/pub/scm/utils/dash/dash.git/patch/?id=29d6f2148f10213de4e904d515e792d2cf8c968e";
|
||||
sha256 = "08q90bx36ixwlcj331dh7420qyj8i0qh1cc1gljrhd83fhl9w0y5";
|
||||
})
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin ./0001-fix-dirent64-et-al-on-darwin.patch;
|
||||
] ++ lib.optional stdenv.isDarwin ./0001-fix-dirent64-et-al-on-darwin.patch;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
||||
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://gondor.apana.org.au/~herbert/dash/";
|
||||
|
|
|
@ -20,7 +20,7 @@ rustPlatform.buildRustPackage rec {
|
|||
maintainers = with maintainers; [ dywedir ];
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin [
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isDarwin [
|
||||
Security
|
||||
];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
buildGoPackage rec {
|
||||
pname = "oh";
|
||||
version = "20160522-${stdenv.lib.strings.substring 0 7 rev}";
|
||||
version = "20160522-${lib.strings.substring 0 7 rev}";
|
||||
rev = "0daaf4081475fb9d6b3801c85019bdd57b2ee9b4";
|
||||
|
||||
goPackagePath = "github.com/michaelmacinnis/oh";
|
||||
|
@ -18,6 +18,6 @@ buildGoPackage rec {
|
|||
meta = with lib;{
|
||||
homepage = "https://github.com/michaelmacinnis/oh";
|
||||
description = "A Unix shell";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
|
|||
mkdir -p $out/bin
|
||||
|
||||
makeWrapper $pslibs/pwsh $out/bin/pwsh \
|
||||
--prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath libraries}" \
|
||||
--prefix ${platformLdLibraryPath} : "${lib.makeLibraryPath libraries}" \
|
||||
--set TERM xterm --set POWERSHELL_TELEMETRY_OPTOUT 1 --set DOTNET_CLI_TELEMETRY_OPTOUT 1
|
||||
'';
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ ncurses ]
|
||||
++ stdenv.lib.optionals (readline != null) [ readline ];
|
||||
++ lib.optionals (readline != null) [ readline ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-def-interp=${stdenv.shell}" #183
|
||||
] ++ stdenv.lib.optionals historySupport [ "--with-history" ]
|
||||
++ stdenv.lib.optionals (readline != null) [ "--with-edit=readline" ];
|
||||
] ++ lib.optionals historySupport [ "--with-history" ]
|
||||
++ lib.optionals (readline != null) [ "--with-edit=readline" ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure.ac \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ fetchurl, stdenv }:
|
||||
{ fetchurl, lib, stdenv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rush";
|
||||
|
@ -29,10 +29,10 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
homepage = "https://www.gnu.org/software/rush/";
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.bjg ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = [ lib.maintainers.bjg ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
|
|
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
|
||||
patches = lib.optional stdenv.hostPlatform.isMusl
|
||||
(fetchpatch {
|
||||
name = "sysmalloc.patch";
|
||||
url = "https://git.alpinelinux.org/aports/plain/community/tcsh/001-sysmalloc.patch?id=184585c046cdd56512f1a76e426dd799b368f8cf";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.2.3";
|
||||
|
@ -20,6 +20,6 @@ stdenv.mkDerivation rec {
|
|||
meta = {
|
||||
description = "The plugin manager for zsh";
|
||||
homepage = "http://antigen.sharats.me";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, ncurses, pcre, buildPackages }:
|
||||
{ lib, stdenv, fetchurl, ncurses, pcre, buildPackages }:
|
||||
|
||||
let
|
||||
version = "5.8";
|
||||
|
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||
|
||||
# the zsh/zpty module is not available on hydra
|
||||
# so skip groups Y Z
|
||||
checkFlags = map (T: "TESTNUM=${T}") (stdenv.lib.stringToCharacters "ABCDEVW");
|
||||
checkFlags = map (T: "TESTNUM=${T}") (lib.stringToCharacters "ABCDEVW");
|
||||
|
||||
# XXX: think/discuss about this, also with respect to nixos vs nix-on-X
|
||||
postInstall = ''
|
||||
|
@ -65,7 +65,7 @@ EOF
|
|||
${if stdenv.hostPlatform == stdenv.buildPlatform then ''
|
||||
$out/bin/zsh -c "zcompile $out/etc/zprofile"
|
||||
'' else ''
|
||||
${stdenv.lib.getBin buildPackages.zsh}/bin/zsh -c "zcompile $out/etc/zprofile"
|
||||
${lib.getBin buildPackages.zsh}/bin/zsh -c "zcompile $out/etc/zprofile"
|
||||
''}
|
||||
mv $out/etc/zprofile $out/etc/zprofile_zwc_is_used
|
||||
'';
|
||||
|
@ -83,8 +83,8 @@ EOF
|
|||
'';
|
||||
license = "MIT-like";
|
||||
homepage = "https://www.zsh.org/";
|
||||
maintainers = with stdenv.lib.maintainers; [ pSub ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ pSub ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
|
|
|
@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
|
|||
#!${stdenv.shell}
|
||||
set -o errexit
|
||||
PATH=${
|
||||
stdenv.lib.makeBinPath [
|
||||
lib.makeBinPath [
|
||||
common-updater-scripts
|
||||
curl
|
||||
cacert
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchFromGitHub }:
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pure-prompt";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub}:
|
||||
{ lib, stdenv, fetchFromGitHub}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zsh-bd";
|
||||
|
@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
|
|||
meta = {
|
||||
description = "Jump back to a specific directory, without doing `cd ../../..` ";
|
||||
homepage = "https://github.com/Tarrasch/zsh-bd";
|
||||
license = stdenv.lib.licenses.free;
|
||||
license = lib.licenses.free;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.olejorgenb ];
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.olejorgenb ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub}:
|
||||
{ lib, stdenv, fetchFromGitHub}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zsh-completions";
|
||||
|
@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
|
|||
meta = {
|
||||
description = "Additional completion definitions for zsh";
|
||||
homepage = "https://github.com/zsh-users/zsh-completions";
|
||||
license = stdenv.lib.licenses.free;
|
||||
license = lib.licenses.free;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.olejorgenb ];
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.olejorgenb ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -65,6 +65,6 @@ haskellPackages.callPackage
|
|||
testHaskellDepends = [HUnit] ++ libraryHaskellDepends;
|
||||
homepage = "https://github.com/olivierverdier/zsh-git-prompt#readme";
|
||||
description = "Informative git prompt for zsh";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [lib.maintainers.league];
|
||||
}) {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, substituteAll, pkgs }:
|
||||
{ lib, stdenv, fetchFromGitHub, substituteAll, pkgs }:
|
||||
|
||||
# To make use of this derivation, use
|
||||
# `programs.zsh.promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";`
|
||||
|
@ -45,9 +45,9 @@ stdenv.mkDerivation rec {
|
|||
meta = {
|
||||
description = "A fast reimplementation of Powerlevel9k ZSH theme";
|
||||
homepage = "https://github.com/romkatv/powerlevel10k";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.hexa ];
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.hexa ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub }:
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
# To make use of this derivation, use
|
||||
# `programs.zsh.promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme";`
|
||||
|
@ -21,9 +21,9 @@ stdenv.mkDerivation {
|
|||
meta = {
|
||||
description = "A beautiful theme for zsh";
|
||||
homepage = "https://github.com/bhilburn/powerlevel9k";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.pierrechevalier83 ];
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.pierrechevalier83 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue