configuration.nix/packages/scripts/default.nix
2023-04-06 01:30:04 +05:30

16 lines
395 B
Nix

{ lib, stdenvNoCC, makeWrapper, libnotify }:
stdenvNoCC.mkDerivation {
pname = "scripts";
version = "1.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ ];
installPhase = ''
mkdir -p $out/bin
cp power-menu.sh $out/bin/power-menu
chmod +x $out/bin/power-menu
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify ]}
'';
}