Merge branch 'master' into staging-next
https://github.com/NixOS/nixpkgs/commit/b04fc593e7b55fe1f74421b11589f12a339c92e2 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
{ stdenv, lib, writeShellScriptBin, writeScript, fish }:
|
||||
|
||||
let
|
||||
rtpPath = "share/fish";
|
||||
|
||||
mapToFuncPath = v:
|
||||
if lib.isString v
|
||||
then v
|
||||
else "${v}/${rtpPath}/vendor_functions.d";
|
||||
|
||||
fishWithFunctionPath = plugins: let
|
||||
funcPaths = map mapToFuncPath plugins;
|
||||
in writeShellScriptBin "fish" ''
|
||||
${fish}/bin/fish \
|
||||
--init-command \
|
||||
"set --prepend fish_function_path ${lib.escapeShellArgs funcPaths}" \
|
||||
"$@"
|
||||
'';
|
||||
|
||||
in attrs@{
|
||||
pname,
|
||||
version,
|
||||
src,
|
||||
|
||||
name ? "fishplugin-${pname}-${version}",
|
||||
unpackPhase ? "",
|
||||
configurePhase ? ":",
|
||||
buildPhase ? ":",
|
||||
preInstall ? "",
|
||||
postInstall ? "",
|
||||
# name of the subdirectory in which to store the plugin
|
||||
installPath ? lib.getName pname,
|
||||
|
||||
checkInputs ? [],
|
||||
# plugins or paths to add to the function path of the test fish shell
|
||||
checkFunctionPath ? [],
|
||||
# test script to be executed in a fish shell
|
||||
checkPhase ? "",
|
||||
doCheck ? checkPhase != "",
|
||||
|
||||
...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (attrs // {
|
||||
inherit name;
|
||||
inherit unpackPhase configurePhase buildPhase;
|
||||
|
||||
inherit preInstall postInstall;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
(
|
||||
install_vendor_files() {
|
||||
source="$1"
|
||||
target="$out/${rtpPath}/vendor_$2.d"
|
||||
|
||||
[ -d $source ] || return 0
|
||||
mkdir -p $target
|
||||
cp -r $source/*.fish "$target/"
|
||||
}
|
||||
|
||||
install_vendor_files completions completions
|
||||
install_vendor_files functions functions
|
||||
install_vendor_files conf conf
|
||||
install_vendor_files conf.d conf
|
||||
)
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
inherit doCheck;
|
||||
checkInputs = [ (fishWithFunctionPath checkFunctionPath) ] ++ checkInputs;
|
||||
checkPhase = ''
|
||||
export HOME=$(mktemp -d) # fish wants a writable home
|
||||
fish "${writeScript "${name}-test" checkPhase}"
|
||||
'';
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
{ lib, newScope }:
|
||||
|
||||
lib.makeScope newScope (self: with self; {
|
||||
|
||||
buildFishPlugin = callPackage ./build-fish-plugin.nix { };
|
||||
|
||||
fishtape = callPackage ./fishtape.nix { };
|
||||
|
||||
foreign-env = callPackage ./foreign-env { };
|
||||
|
||||
pure = callPackage ./pure.nix { };
|
||||
|
||||
})
|
||||
@@ -0,0 +1,32 @@
|
||||
{ lib, buildFishPlugin, fetchFromGitHub }:
|
||||
|
||||
buildFishPlugin rec {
|
||||
pname = "fishtape";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jorgebucaran";
|
||||
repo = "fishtape";
|
||||
rev = version;
|
||||
sha256 = "0dxcyhs2shhgy5xnwcimqja8vqsyk841x486lgq13i3y1h0kp2kd";
|
||||
};
|
||||
|
||||
checkFunctionPath = [ "./" ]; # fishtape is introspective
|
||||
checkPhase = ''
|
||||
rm test/tty.fish # test expects a tty
|
||||
fishtape test/*.fish
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
# move the function script in the proper sub-directory
|
||||
mkdir functions
|
||||
mv fishtape.fish functions/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "TAP-based test runner for Fish";
|
||||
homepage = "https://github.com/jorgebucaran/fishtape";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pacien ];
|
||||
};
|
||||
}
|
||||
+8
-10
@@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:
|
||||
{ lib, buildFishPlugin, fetchFromGitHub, gnused, bash, coreutils }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "fish-foreign-env";
|
||||
buildFishPlugin {
|
||||
pname = "foreign-env";
|
||||
version = "git-20200209";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -11,18 +11,16 @@ stdenv.mkDerivation {
|
||||
sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fish-foreign-env/functions/
|
||||
cp functions/* $out/share/fish-foreign-env/functions/
|
||||
patches = [ ./suppress-harmless-warnings.patch ];
|
||||
|
||||
preInstall = ''
|
||||
sed -e "s|sed|${gnused}/bin/sed|" \
|
||||
-e "s|bash|${bash}/bin/bash|" \
|
||||
-e "s|\| tr|\| ${coreutils}/bin/tr|" \
|
||||
-i $out/share/fish-foreign-env/functions/*
|
||||
-i functions/*
|
||||
'';
|
||||
|
||||
patches = [ ./suppress-harmless-warnings.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A foreign environment interface for Fish shell";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jgillich ];
|
||||
@@ -0,0 +1,29 @@
|
||||
{ lib, buildFishPlugin, fetchFromGitHub, git, fishtape }:
|
||||
|
||||
buildFishPlugin rec {
|
||||
pname = "pure";
|
||||
version = "3.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rafaelrinaldi";
|
||||
repo = "pure";
|
||||
rev = "v${version}";
|
||||
sha256 = "134sz3f98gb6z2vgd5kkm6dd8pka5gijk843c32s616w35y07sga";
|
||||
};
|
||||
|
||||
checkInputs = [ git ];
|
||||
checkFunctionPath = [ fishtape ];
|
||||
checkPhase = ''
|
||||
# https://github.com/rafaelrinaldi/pure/issues/264
|
||||
rm tests/_pure_string_width.test.fish
|
||||
|
||||
fishtape tests/*.test.fish
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Pretty, minimal and fast Fish prompt, ported from zsh";
|
||||
homepage = "https://github.com/rafaelrinaldi/pure";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pacien ];
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
{ stdenv, fetchurl, fetchpatch
|
||||
, ncurses }:
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tcsh";
|
||||
version = "6.22.02";
|
||||
version = "6.22.03";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
"ftp://ftp.astron.com/pub/tcsh/${pname}-${version}.tar.gz"
|
||||
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/${pname}-${version}.tar.gz"
|
||||
];
|
||||
sha256 = "0nw8prz1n0lmr82wnpyhrzmki630afn7p9cfgr3vl00vr9c72a7d";
|
||||
sha256 = "sha256-viz9ZT0qDH9QbS3RTBIyS6dJvUhAN75t9Eo5c/UiYrc=";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1qc6ydxhdfizsbkaxhpn3wib8sfphrw10xnnsxx2prvzg9g2zp67";
|
||||
});
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "An enhanced version of the Berkeley UNIX C shell (csh)";
|
||||
longDescription = ''
|
||||
tcsh is an enhanced but completely compatible version of the
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
, nix, nixfmt, jq, coreutils, gnused, curl, cacert }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2021-01-02";
|
||||
version = "2021-01-05";
|
||||
pname = "oh-my-zsh";
|
||||
rev = "0e833b622ba43d38bd62227244d831f3c0e4a325";
|
||||
rev = "86f805280f6a8cf65d8d0a9380489aae4b72f767";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "ohmyzsh";
|
||||
repo = "ohmyzsh";
|
||||
sha256 = "06bmlc8lzqxs37glwmv7j0yk73kccmrdb783kvqldski56004gba";
|
||||
sha256 = "1wf4g1z7fvravsp020xdqvczf4kcw1nh3b22djlsgd97n8qgziaz";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user