blob: 64f55f23dc54f5e525f6f61e680148c108f44fc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ 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 }
'';
}
|