mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
smart-wallpaper: init at unstable-2022-09-01
This commit is contained in:
parent
2a0a6bf909
commit
e3887562bc
36
pkgs/tools/X11/smart-wallpaper/default.nix
Normal file
36
pkgs/tools/X11/smart-wallpaper/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenvNoCC
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, xdpyinfo
|
||||
, killall
|
||||
, xwinwrap
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "smart-wallpaper";
|
||||
version = "unstable-2022-09-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Baitinq";
|
||||
repo = "smart-wallpaper";
|
||||
rev = "d175695d3485fb14144c1908eb3569b20caa6ba5";
|
||||
sha256 = "sha256-cFgvuntdKPzdQJ7xE2DIT+aNAazocIhM6BBbcQOlryU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 -t $out/bin smart-wallpaper
|
||||
wrapProgram $out/bin/smart-wallpaper \
|
||||
--prefix PATH : ${lib.makeBinPath [ xdpyinfo killall xwinwrap ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Baitinq/smart-wallpaper";
|
||||
description = "A simple bash script that automatically changes your wallpaper depending on if its daytime or nighttime";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ baitinq ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -9224,6 +9224,8 @@ with pkgs;
|
||||
|
||||
nitrogen = callPackage ../tools/X11/nitrogen {};
|
||||
|
||||
smart-wallpaper = callPackage ../tools/X11/smart-wallpaper { };
|
||||
|
||||
nms = callPackage ../tools/misc/nms { };
|
||||
|
||||
nomachine-client = callPackage ../tools/admin/nomachine-client { };
|
||||
|
Loading…
Reference in New Issue
Block a user