about summary refs log tree commit diff
path: root/packages/smart-wallpaper/default.nix
blob: 020481c99bd19d39372d39241f2b140a4b227a21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ]}
  '';
}