37 lines
555 B
Nix
37 lines
555 B
Nix
{ stdenv
|
|
, lib
|
|
, sxhkd
|
|
, bash
|
|
, feh
|
|
, jq
|
|
, fzy
|
|
, figlet
|
|
, curl
|
|
, xrandr
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "utils";
|
|
version = "1.00";
|
|
|
|
src = ./utils;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bash feh xrandr jq curl fzy ];
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
for i in $(ls $src/sh); do
|
|
cp $src/sh/$i $out/bin
|
|
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl ]}
|
|
done
|
|
'';
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
}
|
|
|