about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/old/sysact.nix
blob: b505746a8ae79791b175b32d080994f4fdbe4133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, callPackage, slock }:
let
  voidrice = callPackage ../voidrice.nix { };
in
  stdenv.mkDerivation {
    name = "sysact";
    src = voidrice;

    installPhase = ''
      mkdir -p $out/bin
      cp ${voidrice}/.local/bin/sysact $out/bin/sysact
      sed -i "s:slock:${slock}/bin/slock:g" $out/bin/sysact
    '';

    meta = {
      description = "Power menu. (shutdown, hibernate etc)";
      homepage = "https://github.com/LukeSmithXYZ/voidrice";
    };
  }