Merge pull request #115422 from reedrw/add-sbu

shticker-book-unwritten: init at 1.0.3
This commit is contained in:
Sandro 2021-04-12 17:10:19 +02:00 committed by GitHub
commit d9de27d666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -27940,6 +27940,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 { };