shticker-book-unwritten: init at 1.0.3

This commit is contained in:
Reed 2021-03-08 09:11:03 -05:00
parent 3061c1a183
commit 897cbe0928
5 changed files with 1312 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,24 @@
{ buildFHSUserEnv, callPackage, lib, stdenvNoCC }:
let
shticker-book-unwritten-unwrapped = callPackage ./unwrapped.nix { };
in buildFHSUserEnv {
name = "shticker_book_unwritten";
targetPkgs = pkgs: with pkgs; [
alsaLib
xorg.libX11
xorg.libXext
libglvnd
shticker-book-unwritten-unwrapped
];
runScript = "shticker_book_unwritten";
meta = with lib; {
description = "Minimal CLI launcher for the Toontown Rewritten MMORPG";
homepage = "https://github.com/JonathanHelianthicusDoe/shticker_book_unwritten";
license = licenses.gpl3Plus;
maintainers = [ maintainers.reedrw ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,20 @@
{ fetchFromGitHub, lib, openssl, pkg-config, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "shticker-book-unwritten";
version = "1.0.3";
src = fetchFromGitHub {
owner = "JonathanHelianthicusDoe";
repo = "shticker_book_unwritten";
rev = "v${version}";
sha256 = "08lyxica0b0vvivybsvzigy2j7saar78mbz723y3g5hqrilfb5np";
};
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "1lnhdr8mri1ns9lxj6aks4vs2v4fvg7mcriwzwj78inpi1l0xqk5";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
}

View file

@ -0,0 +1,18 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p cargo coreutils git gnugrep jq
set -eu -o verbose
here=$PWD
version=$(cat unwrapped.nix | grep '^ version = "' | cut -d '"' -f 2)
checkout=$(mktemp -d)
git clone -b "v$version" --depth=1 https://github.com/JonathanHelianthicusDoe/shticker_book_unwritten "$checkout"
cd "$checkout"
rm -f rust-toolchain
cargo generate-lockfile
git add -f Cargo.lock
git diff HEAD -- Cargo.lock > "$here"/cargo-lock.patch
cd "$here"
rm -rf "$checkout"

View file

@ -27421,6 +27421,8 @@ in
shattered-pixel-dungeon = callPackage ../games/shattered-pixel-dungeon { };
shticker-book-unwritten = callPackage ../games/shticker-book-unwritten { };
sienna = callPackage ../games/sienna { love = love_0_10; };
sil = callPackage ../games/sil { };