Compare commits

..

22 commits

Author SHA1 Message Date
Katherina Walshe-Grey f447cd380e Merge branch 'nur/master' 2024-12-27 12:18:13 +00:00
Katherina Walshe-Grey 625756711e change to focus repo on games packages 2024-12-27 12:16:03 +00:00
Katherina Walshe-Grey 6d9b5080a2 remove redundant boilerplate 2024-08-22 11:44:14 +01:00
Katherina Walshe-Grey 27d7167292 dont-take-it-personally-babe: consistent binary name 2024-06-27 11:36:00 +01:00
Katherina Walshe-Grey 27d9a986d9 digital-a-love-story: lowercase binary name 2024-06-27 11:35:47 +01:00
Katherina Walshe-Grey a27f7fb0c5 dont-take-it-personally-babe: init at 1.1 2024-06-27 11:29:04 +01:00
Katherina Walshe-Grey b8d7c17dc6 digital-a-love-story: correct package name 2024-06-27 11:00:19 +01:00
Katherina Walshe-Grey 698d6e7226 digital-a-love-story: completely replace packaged launcher 2024-06-27 10:59:55 +01:00
Katherina Walshe-Grey 0db7b07361 digital-a-love-story: correct path to icon 2024-06-24 18:47:29 +01:00
Katherina Walshe-Grey 19db1d33d4 digital-a-love-story: add desktop file 2024-06-24 18:12:43 +01:00
Katherina Walshe-Grey 25cfce2f7e digital-a-love-story: use substituteInPlace instead of sed to rewrite paths 2024-06-24 17:30:05 +01:00
Katherina Walshe-Grey c08f889988 digitalalovestory-bin: rename to digital-a-love-story 2024-06-24 17:07:41 +01:00
Katherina Walshe-Grey 21eb3ca411 Revert "digitalalovestory: init"
This reverts commit 20c6d8bc13.

fix
2024-06-24 17:07:06 +01:00
Katherina Walshe-Grey ab1dd67e72 digitalalovestory-bin: link missing libraries & excise steam-run 2024-06-24 16:52:06 +01:00
Katherina Walshe-Grey d841c56b8f digitalalovestory-bin: build as 32-bit 2024-06-24 13:16:41 +01:00
Katherina Walshe-Grey 20c6d8bc13 digitalalovestory: init
just an outline, not building yet
2024-06-24 13:13:24 +01:00
Katherina Walshe-Grey 21965c3971 digitalalovestory-bin: don't hardcode version number in source URL 2024-06-24 12:22:45 +01:00
Katherina Walshe-Grey 97ddcbcaa1 digitalalovestory-bin: init 2024-06-23 21:07:29 +01:00
Katherina Walshe-Grey e1db10bcf3 Remove example package 2024-06-23 17:36:52 +01:00
Katherina Walshe-Grey 05005f4702 Update author name in license 2024-06-23 16:59:06 +01:00
Katherina Walshe-Grey 5d897adb87 Initial setup 2024-06-23 16:34:42 +01:00
Katherina Walshe-Grey 001462e8c3
Initial commit 2024-06-23 16:18:10 +01:00
11 changed files with 224 additions and 4 deletions

View file

@ -1,5 +1,3 @@
MIT License
Copyright (c) 2024 qenya
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

6
default.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> { } }:
{
digital-a-love-story = pkgs.pkgsi686Linux.callPackage ./packages/digital-a-love-story { };
dont-take-it-personally-babe = pkgs.pkgsi686Linux.callPackage ./packages/dont-take-it-personally-babe { };
}

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1734649271,
"narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
description = "Freeware games by Christine Love";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "i686-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system: import ./default.nix {
pkgs = nixpkgs.legacyPackages."${system}";
});
legacyPackages = forAllSystems (system: import ./default.nix {
pkgs = import nixpkgs { inherit system; };
});
overlays.default = final: prev: {
scoutshonour = import ./default.nix { pkgs = final; };
};
};
}

View 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";
};
}

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Digital: A Love Story
Exec=@out@/bin/digital
Icon=@out@/opt/digital/game/icon.png
Type=Application
Categories=Game;

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec "@out@/opt/digital/lib/python" "-OO" "@out@/opt/digital/Digital.py" "$@"

View file

@ -0,0 +1,76 @@
{ stdenv
, lib
, fetchzip
, zlib
, xorg
, libglvnd
, libGLU
, autoPatchelfHook
, libpulseaudio
, alsa-lib
}:
stdenv.mkDerivation rec {
pname = "dont-take-it-personally-babe";
version = "1.1";
src = fetchzip {
url = "https://scoutshonour.com/donttakeitpersonallybabeitjustaintyourstory/don't%20take%20it%20personally,%20babe-${version}-linux-x86.tar.bz2";
sha256 = "X1xAJS8SrsQ5yrValrlfmeRLtSiH94EUw++GWjstwdc=";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
zlib
xorg.libX11
xorg.libXext
libglvnd
libGLU
xorg.libXi
xorg.libXmu
];
appendRunpaths = [
"${xorg.libX11}/lib"
"${xorg.libXext}/lib"
"${xorg.libXrender}/lib"
"${xorg.libXrandr}/lib"
"${libpulseaudio}/lib"
"${alsa-lib}/lib"
];
sourceRoot = ".";
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
# copy distributed files
mkdir -p $out/opt/donttakeitpersonallybabeitjustaintyourstory
cp -R source/* $out/opt/donttakeitpersonallybabeitjustaintyourstory
# add launcher
mkdir -p $out/bin
substituteAll ${./launcher.sh} $out/bin/donttakeitpersonallybabeitjustaintyourstory
chmod +x $out/bin/donttakeitpersonallybabeitjustaintyourstory
# add desktop file
mkdir -p $out/share/applications
substituteAll ${./donttakeitpersonallybabeitjustaintyourstory.desktop} $out/share/applications/donttakeitpersonallybabeitjustaintyourstory.desktop
runHook postInstall
'';
meta = with lib; {
homepage = "https://scoutshonour.com/donttakeitpersonallybabeitjustaintyourstory/";
description = "don't take it personally, babe, it just ain't your story: a freeware game by Christine Love";
license = licenses.cc-by-nc-sa-30;
platforms = lists.intersectLists platforms.x86 platforms.linux;
mainProgram = "donttakeitpersonallybabeitjustaintyourstory";
};
}

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=don't take it personally, babe, it just ain't your story
Exec=@out@/bin/donttakeitpersonallybabeitjustaintyourstory
Icon=@out@/opt/donttakeitpersonallybabeitjustaintyourstory/game/icon256x256.png
Type=Application
Categories=Game;

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec "@out@/opt/donttakeitpersonallybabeitjustaintyourstory/lib/python" "-OO" "@out@/opt/donttakeitpersonallybabeitjustaintyourstory/don't take it personally, babe.py" "$@"