diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-09-05 11:53:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 11:53:51 +0200 |
commit | d48809fc86f05e9133ddbfad7a9d2470d70201c8 (patch) | |
tree | bd66adcf894794a939772a4b7ac32be636424d01 /pkgs/shells | |
parent | 2b04260f044581d2ed90bc388e9ac2a0797a7532 (diff) | |
parent | 8dfff66db7284671c3018f305169848f763a15b7 (diff) |
Merge pull request #164360 from beezow/bass
bass: init at 1.0
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/fish/plugins/bass.nix | 30 | ||||
-rw-r--r-- | pkgs/shells/fish/plugins/default.nix | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/bass.nix b/pkgs/shells/fish/plugins/bass.nix new file mode 100644 index 0000000000000..db2907bddf409 --- /dev/null +++ b/pkgs/shells/fish/plugins/bass.nix @@ -0,0 +1,30 @@ +{ lib, buildFishPlugin, fetchFromGitHub, python3 }: + +buildFishPlugin rec { + pname = "bass"; + version = "unstable-2021-02-18"; + + src = fetchFromGitHub { + owner = "edc"; + repo = pname; + rev = "2fd3d2157d5271ca3575b13daec975ca4c10577a"; + sha256 = "0mb01y1d0g8ilsr5m8a71j6xmqlyhf8w4xjf00wkk8k41cz3ypky"; + }; + + #buildFishplugin will only move the .fish files, but bass also relies on python + postInstall = '' + cp functions/__bass.py $out/share/fish/vendor_functions.d/ + ''; + + checkInputs = [ python3 ]; + checkPhase = '' + make test + ''; + + meta = with lib; { + description = "Fish function making it easy to use utilities written for Bash in Fish shell"; + homepage = "https://github.com/edc/bass"; + license = licenses.mit; + maintainers = with maintainers; [ beezow ]; + }; +} diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 0cc6eb6b89edf..cb2d73dacc5a1 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -8,6 +8,8 @@ lib.makeScope newScope (self: with self; { clownfish = callPackage ./clownfish.nix { }; + bass = callPackage ./bass.nix { }; + done = callPackage ./done.nix { }; # Fishtape 2.x and 3.x aren't compatible, |