dot_testing/builds/utils.nix

35 lines
529 B
Nix

{ stdenv
, lib
, sxhkd
, bash
, feh
, jq
, curl
, xrandr
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "utils";
version = "1.00";
src = ./utils;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash feh xrandr jq curl ];
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 curl ]}
done
'';
phases = [ "buildPhase" "installPhase" ];
}