lwp: init at 1.1

This commit is contained in:
Gabriel Arazas 2022-09-26 14:34:19 +08:00
parent e8b45d36d7
commit 35c27749c5
2 changed files with 37 additions and 0 deletions

View File

@ -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 { };

36
pkgs/lwp/default.nix Normal file
View File

@ -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;
};
}