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