aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/i3/i3-commands.nix
blob: d3df9a4319885cddc74764a2cae31d459543cab9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
    perSystem =
        { pkgs, ... }:
        {
            packages.i3-commands = pkgs.callPackage (
                {
                    stdenv,
                    lib
                }:
                stdenv.mkDerivation {
                    pname = "i3-commands";
                    version = "0.0.1";

                    srcs = lib.cleanSourceWith {
                        src = ./scripts;
                        filter = path: type: baseNameOf path != "rofi-passmenu";
                    };

                    installPhase = ''
        runHook preInstall
        mkdir -p $out/bin
        install -D -m 755 ./* $out/bin
        runHook postInstall
    '';
                }
            ) { };
        };
}