diff --git a/pkgs/default.nix b/pkgs/default.nix index 95bc7bcf..72b8376c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -54,6 +54,7 @@ let }); libcs50 = callPackage ./libcs50.nix { }; license-cli = callPackage ./license-cli { }; + lwp = callPackage ./lwp { }; moac = callPackage ./moac.nix { }; mopidy-beets = callPackage ./mopidy-beets.nix { }; mopidy-funkwhale = callPackage ./mopidy-funkwhale.nix { }; diff --git a/pkgs/lwp/default.nix b/pkgs/lwp/default.nix new file mode 100644 index 00000000..120ae9f7 --- /dev/null +++ b/pkgs/lwp/default.nix @@ -0,0 +1,36 @@ +{ stdenv +, lib +, fetchFromGitHub +, SDL2 +, xorg +}: + +stdenv.mkDerivation rec { + pname = "lwp"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "jszczerbinsky"; + repo = pname; + rev = version; + sha256 = "sha256-VwWPP71kAVxM8+GR0Z/RSshtoK7KNzRgSkdOBXOVZ9s="; + }; + + installPhase = '' + install -Dm0755 a.out $out/bin/lwp + mkdir -p $out/share/lwp + cp -R ./wallpapers $out/share/lwp + ''; + + buildInputs = [ + SDL2 + xorg.libX11 + ]; + + meta = with lib; { + homepage = "https://github.com/jszczerbinsky/lwp"; + description = "Parallax wallpaper engine for Linux and Windows"; + license = licenses.mit; + platforms = platforms.unix; + }; +}