Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildFishPlugin, fetchFromGitHub, gnused, bash, coreutils }:
2
3buildFishPlugin {
4 pname = "foreign-env";
5 version = "unstable-2020-02-09";
6
7 src = fetchFromGitHub {
8 owner = "oh-my-fish";
9 repo = "plugin-foreign-env";
10 rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
11 sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
12 };
13
14 patches = [ ./suppress-harmless-warnings.patch ];
15
16 preInstall = ''
17 sed -e "s|sed|${gnused}/bin/sed|" \
18 -e "s|bash|${bash}/bin/bash|" \
19 -e "s|\| tr|\| ${coreutils}/bin/tr|" \
20 -i functions/*
21 '';
22
23 meta = with lib; {
24 description = "A foreign environment interface for Fish shell";
25 license = licenses.mit;
26 maintainers = with maintainers; [ jgillich ];
27 platforms = with platforms; unix;
28 };
29}