Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 827 B view raw
1{ 2 lib, 3 buildFishPlugin, 4 fetchFromGitHub, 5 python3, 6}: 7 8buildFishPlugin rec { 9 pname = "bass"; 10 version = "1.0-unstable-2021-02-18"; 11 12 src = fetchFromGitHub { 13 owner = "edc"; 14 repo = pname; 15 rev = "2fd3d2157d5271ca3575b13daec975ca4c10577a"; 16 sha256 = "0mb01y1d0g8ilsr5m8a71j6xmqlyhf8w4xjf00wkk8k41cz3ypky"; 17 }; 18 19 #buildFishplugin will only move the .fish files, but bass also relies on python 20 postInstall = '' 21 cp functions/__bass.py $out/share/fish/vendor_functions.d/ 22 ''; 23 24 nativeCheckInputs = [ python3 ]; 25 checkPhase = '' 26 make test 27 ''; 28 29 meta = with lib; { 30 description = "Fish function making it easy to use utilities written for Bash in Fish shell"; 31 homepage = "https://github.com/edc/bass"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ beezow ]; 34 }; 35}