change to focus repo on games packages
This commit is contained in:
parent
6d9b5080a2
commit
625756711e
13 changed files with 24 additions and 150 deletions
69
packages/digital-a-love-story/default.nix
Normal file
69
packages/digital-a-love-story/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchzip
|
||||
, zlib
|
||||
, autoPatchelfHook
|
||||
, xorg
|
||||
, libpulseaudio
|
||||
, alsa-lib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "digital-a-love-story";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://www.scoutshonour.com/lilyofthevalley/digital-${version}.tar.bz2";
|
||||
sha256 = "+7KcZ8dKts1AoKWNfHMKIt+w2fBFIAcnkuAtzSw49xk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
|
||||
appendRunpaths = [
|
||||
"${xorg.libX11}/lib"
|
||||
"${xorg.libXext}/lib"
|
||||
"${xorg.libXrender}/lib"
|
||||
"${xorg.libXrandr}/lib"
|
||||
"${xorg.libXcursor}/lib"
|
||||
"${libpulseaudio}/lib"
|
||||
"${alsa-lib}/lib"
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# copy distributed files
|
||||
mkdir -p $out/opt/digital
|
||||
cp -R source/* $out/opt/digital
|
||||
|
||||
# add launcher
|
||||
mkdir -p $out/bin
|
||||
substituteAll ${./launcher.sh} $out/bin/digital
|
||||
chmod +x $out/bin/digital
|
||||
|
||||
# add desktop file
|
||||
mkdir -p $out/share/applications
|
||||
substituteAll ${./digital.desktop} $out/share/applications/digital.desktop
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://scoutshonour.com/digital/";
|
||||
description = "Digital: A Love Story, a freeware game by Christine Love";
|
||||
license = licenses.cc-by-nc-sa-30;
|
||||
platforms = lists.intersectLists platforms.x86 platforms.linux;
|
||||
mainProgram = "digital";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue