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