configure nix package, overlay, flake
3 files changed, 26 insertions(+), 2 deletions(-)
changed files
M default.nix → default.nix
@@ -1,12 +1,18 @@ { lib, buildFishPlugin, + fishtape_3, ... }: buildFishPlugin { pname = "scriptura"; version = "0.0.1"; src = ./.; + + checkPlugins = [ fishtape_3 ]; + checkPhase = '' + fishtape tests/*.fish + ''; meta = { description = "A fish plugin for scriptura";
M flake.nix → flake.nix
@@ -29,16 +29,33 @@ devShells = forEachSupportedSystem ( { pkgs }: { default = pkgs.mkShellNoCC { - packages = with pkgs; [ fish ]; + packages = with pkgs; [ + (pkgs.wrapFish { + pluginPkgs = with fishPlugins; [ + fishtape_3 + ]; + completionDirs = [ ]; + functionDirs = [ ./functions ]; + confDirs = [ ]; + }) + ]; }; } ); packages = forEachSupportedSystem ( { pkgs }: rec { - scriptura = pkgs.callPackage ./default.nix { }; + scriptura = pkgs.callPackage ./default.nix { + inherit (pkgs.fishPlugins) buildFishPlugin fishtape_3; + }; default = scriptura; } ); + + overlays = { + default = final: prev: { + scriptura = self.packages.${prev.system}.scriptura; + }; + }; }; }