Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 875 B view raw
1{ 2 lib, 3 buildFishPlugin, 4 fetchFromGitHub, 5}: 6 7# Due to a quirk in tide breaking wrapFish, we need to add additional commands in the config.fish 8# Refer to the following comment to get you setup: https://github.com/NixOS/nixpkgs/pull/201646#issuecomment-1320893716 9buildFishPlugin rec { 10 pname = "tide"; 11 version = "6.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "IlanCosman"; 15 repo = "tide"; 16 rev = "v${version}"; 17 hash = "sha256-ZyEk/WoxdX5Fr2kXRERQS1U1QHH3oVSyBQvlwYnEYyc="; 18 }; 19 20 #buildFishplugin will only move the .fish files, but tide has a tide configure function 21 postInstall = '' 22 cp -R functions/tide $out/share/fish/vendor_functions.d/ 23 ''; 24 25 meta = with lib; { 26 description = "Ultimate Fish prompt"; 27 homepage = "https://github.com/IlanCosman/tide"; 28 license = licenses.mit; 29 maintainers = [ maintainers.jocelynthode ]; 30 }; 31}