blob: 44d7bdad5f4af54fa3e9caf9cec70e2708037a79 (
plain)
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
|
{
lib,
stdenvNoCC,
makeWrapper,
bash,
jq,
sway,
swaylock,
background-lnxpcs,
}:
stdenvNoCC.mkDerivation {
pname = "myswaylock";
version = "1.0";
meta = with lib; {
license = licenses.gpl3;
platforms = platforms.linux;
};
nativeBuildInputs = [makeWrapper];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
cp ${./myswaylock.sh} $out/bin/myswaylock
wrapProgram $out/bin/myswaylock \
--prefix PATH : ${lib.makeBinPath [bash jq sway swaylock]} \
--prefix BACKGROUND_LNXPCS : ${background-lnxpcs}
'';
}
|