all repos — scriptura @ 433782d3d494d65578347f0eb6f610e91bc49394

a corner in $HOME for your scripts

configure nix package, overlay, flake

Alan Pearce
commit

433782d3d494d65578347f0eb6f610e91bc49394

parent

9b7b6f66f69aa1b6e3c1583e8dee81c403852d29

3 files changed, 26 insertions(+), 2 deletions(-)

changed files
A .gitignore
@@ -0,0 +1,1 @@
+/result
M default.nixdefault.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.nixflake.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; + }; + }; }; }