From ad58b57df7b298bc3e25c578f590d44da3ce36c9 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 17 Jun 2022 19:09:27 +0200 Subject: Initial commit --- packages/smart-wallpaper/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/smart-wallpaper/default.nix (limited to 'packages/smart-wallpaper/default.nix') diff --git a/packages/smart-wallpaper/default.nix b/packages/smart-wallpaper/default.nix new file mode 100644 index 0000000..020481c --- /dev/null +++ b/packages/smart-wallpaper/default.nix @@ -0,0 +1,19 @@ +{ stdenv, lib, fetchFromGitHub, makeWrapper, bash, xdpyinfo, killall }: +stdenv.mkDerivation { + pname = "smart-wallpaper"; + version = "1.0"; + src = fetchFromGitHub { + owner = "Baitinq"; + repo = "smart-wallpaper"; + rev = "154acddeb4b63c19beacc6a68248dd02797d9cca"; + sha256 = "sha256-fRK3N+UnBPXpvx4Z64JC5TstUi//l5jtrm+rFDxIQUs="; + }; + buildInputs = [ bash xdpyinfo killall ]; + nativeBuildInputs = [ makeWrapper ]; + installPhase = '' + mkdir -p $out/bin + cp smart-wallpaper $out/bin/smart-wallpaper + wrapProgram $out/bin/smart-wallpaper \ + --prefix PATH : ${lib.makeBinPath [ bash xdpyinfo killall ]} + ''; +} -- cgit 1.4.1