pkgs/shells: stdenv.lib -> lib
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user