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