Merge pull request #115422 from reedrw/add-sbu
shticker-book-unwritten: init at 1.0.3
This commit is contained in:
commit
d9de27d666
1248
pkgs/games/shticker-book-unwritten/cargo-lock.patch
Normal file
1248
pkgs/games/shticker-book-unwritten/cargo-lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
24
pkgs/games/shticker-book-unwritten/default.nix
Normal file
24
pkgs/games/shticker-book-unwritten/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
20
pkgs/games/shticker-book-unwritten/unwrapped.nix
Normal file
20
pkgs/games/shticker-book-unwritten/unwrapped.nix
Normal 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 ];
|
||||||
|
}
|
18
pkgs/games/shticker-book-unwritten/update-cargo-lock.sh
Executable file
18
pkgs/games/shticker-book-unwritten/update-cargo-lock.sh
Executable 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"
|
@ -27940,6 +27940,8 @@ in
|
|||||||
|
|
||||||
shattered-pixel-dungeon = callPackage ../games/shattered-pixel-dungeon { };
|
shattered-pixel-dungeon = callPackage ../games/shattered-pixel-dungeon { };
|
||||||
|
|
||||||
|
shticker-book-unwritten = callPackage ../games/shticker-book-unwritten { };
|
||||||
|
|
||||||
sienna = callPackage ../games/sienna { love = love_0_10; };
|
sienna = callPackage ../games/sienna { love = love_0_10; };
|
||||||
|
|
||||||
sil = callPackage ../games/sil { };
|
sil = callPackage ../games/sil { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user