fork/home-manager

git clone https://git.julia.blue/fork/home-manager

amesgengh: add `extensions` option8675cfa5

master
491 B27 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  programs.gh = {
5    enable = true;
6    extensions = [ pkgs.gh-eco ];
7  };
8
9  test.stubs = {
10    gh = { };
11    gh-eco = {
12      name = "gh-eco";
13      buildScript = ''
14        mkdir -p $out/bin
15        touch $out/bin/gh-eco
16        chmod +x $out/bin/gh-eco
17      '';
18      outPath = null;
19    };
20  };
21
22  nmt.script = ''
23    gh_eco=home-files/.local/share/gh/extensions/gh-eco/gh-eco
24    assertFileExists "$gh_eco"
25    assertFileIsExecutable "$gh_eco"
26  '';
27}