1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-06-09 05:29:29 +00:00
This commit is contained in:
Rae 5e 2025-06-05 22:29:06 -04:00
parent ba9f49ea9a
commit 58e551abb2
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
14 changed files with 686 additions and 740 deletions

View file

@ -1,23 +1,24 @@
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation {
pname = "chibicc-uxn";
version = "1.0.0";
pname = "chibicc-uxn";
version = "1.0.0";
src = fetchFromGitHub {
owner = "lynn";
repo = "chibicc";
rev = "0a590db363fb8d69b80fc70d9dfb7e655aafe656";
sha256 = "1jf18dh9ns0q79q8ql5yiw7l3zswyy0qjlz089xr3kw4zpqaqfmn";
};
src = fetchFromGitHub {
owner = "lynn";
repo = "chibicc";
rev = "0a590db363fb8d69b80fc70d9dfb7e655aafe656";
sha256 = "1jf18dh9ns0q79q8ql5yiw7l3zswyy0qjlz089xr3kw4zpqaqfmn";
};
installPhase = ''
mkdir -p $out/bin
cp chibicc $out/bin
'';
installPhase = ''
mkdir -p $out/bin
cp chibicc $out/bin
'';
meta = with lib; {
description = "A small C compiler... for uxn";
homepage = "https://github.com/lynn/chibicc";
license = licenses.mit;
platforms = platforms.unix;
};
meta = with lib; {
description = "A small C compiler... for uxn";
homepage = "https://github.com/lynn/chibicc";
license = licenses.mit;
platforms = platforms.unix;
};
}

View file

@ -1,6 +1,7 @@
{ ... }: final: prev: with final; {
chibicc-uxn = callPackage ./chibicc-uxn {};
playit-agent = callPackage ./playit-agent {};
wxwabbitemu = callPackage ./wxwabbitemu {};
ynodesktop = callPackage ./ynodesktop {};
chibicc-uxn = callPackage ./chibicc-uxn {};
playit-agent = callPackage ./playit-agent {};
wxwabbitemu = callPackage ./wxwabbitemu {};
ynodesktop = callPackage ./ynodesktop {};
}

View file

@ -1,20 +1,21 @@
{ rustPlatform, fetchFromGitHub, lib }: rustPlatform.buildRustPackage rec {
pname = "playit-agent";
version = "0.15.26";
pname = "playit-agent";
version = "0.15.26";
src = fetchFromGitHub {
owner = "playit-cloud";
repo = "playit-agent";
rev = "v" + version;
sha256 = "12wc8am3zamjlkn61ajjw8kdvdrn9plvjnhskx56yspz9v9sys6f";
};
src = fetchFromGitHub {
owner = "playit-cloud";
repo = "playit-agent";
rev = "v" + version;
sha256 = "12wc8am3zamjlkn61ajjw8kdvdrn9plvjnhskx56yspz9v9sys6f";
};
cargoHash = "sha256-JRsmZ5D/awsIjExGTDkzYkun6oeIpL1FkZJKzZf/XF0=";
doCheck = false; # uses network tests and it also takes SO FUCKING LONG oh my god
cargoHash = "sha256-JRsmZ5D/awsIjExGTDkzYkun6oeIpL1FkZJKzZf/XF0=";
doCheck = false; # uses network tests and it also takes SO FUCKING LONG oh my god
meta = with lib; {
description = "The playit program";
homepage = "https://playit.gg/";
license = licenses.bsd2;
};
meta = with lib; {
description = "The playit program";
homepage = "https://playit.gg/";
license = licenses.bsd2;
};
}

View file

@ -23,3 +23,4 @@ stdenv.mkDerivation rec {
license = licenses.free;
};
}

View file

@ -8,3 +8,4 @@ stdenv.mkDerivation {
description = "A portable linker for multiple file formats";
};
}

View file

@ -1,86 +1,87 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
imagemagick,
makeWrapper,
nodejs,
copyDesktopItems,
electron,
makeDesktopItem
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
imagemagick,
makeWrapper,
nodejs,
copyDesktopItems,
electron,
makeDesktopItem
}: stdenv.mkDerivation rec {
pname = "ynodesktop";
version = "1.2.3";
pname = "ynodesktop";
version = "1.2.3";
src = fetchFromGitHub {
owner = "affectioned";
repo = pname;
rev = version;
sha256 = "1zr84mbc5p27f6ks4z2rkgg9cifzimf478f42bmz4yp44vrhaj1a";
};
src = fetchFromGitHub {
owner = "affectioned";
repo = pname;
rev = version;
sha256 = "1zr84mbc5p27f6ks4z2rkgg9cifzimf478f42bmz4yp44vrhaj1a";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-EHoSypJWFC2k0ES6ZQxxrumBLx9H3E9YTniWf0V5nWc=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-EHoSypJWFC2k0ES6ZQxxrumBLx9H3E9YTniWf0V5nWc=";
};
env.ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
env.ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
imagemagick
makeWrapper
nodejs
copyDesktopItems
];
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
imagemagick
makeWrapper
nodejs
copyDesktopItems
];
yarnBuildScript = "electron-builder";
yarnBuildFlags = [
"--dir"
"-c.electronDist=${electron.dist}"
"-c.electronVersion=${electron.version}"
];
yarnBuildScript = "electron-builder";
yarnBuildFlags = [
"--dir"
"-c.electronDist=${electron.dist}"
"-c.electronVersion=${electron.version}"
];
# TODO: also export the other icons from the .ico (i dont think theyre scaled properly though)
installPhase = ''
runHook preInstall
# TODO: also export the other icons from the .ico (i dont think theyre scaled properly though)
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons/hicolor/256x256/apps
magick "assets/logo.ico[5]" "$out/share/icons/hicolor/256x256/apps/ynodesktop.png"
mkdir -p $out/share/icons/hicolor/256x256/apps
magick "assets/logo.ico[5]" "$out/share/icons/hicolor/256x256/apps/ynodesktop.png"
mkdir -p $out/share/ynodesktop
cp -r dist/*-unpacked/{locales,resources{,.pak}} $out/share/ynodesktop
mkdir -p $out/share/ynodesktop
cp -r dist/*-unpacked/{locales,resources{,.pak}} $out/share/ynodesktop
makeWrapper "${electron}/bin/electron" $out/bin/ynodesktop \
--add-flags $out/share/ynodesktop/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
--inherit-argv0
makeWrapper "${electron}/bin/electron" $out/bin/ynodesktop \
--add-flags $out/share/ynodesktop/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
--inherit-argv0
runHook postInstall
'';
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = pname;
desktopName = "YNOdesktop";
genericName = "Desktop client for Yume Nikki Online";
comment = "Play Yume Nikki Online";
exec = "ynodesktop";
icon = "ynodesktop";
categories = [ "Game" ];
})
];
desktopItems = [
(makeDesktopItem {
name = pname;
desktopName = "YNOdesktop";
genericName = "Desktop client for Yume Nikki Online";
comment = "Play Yume Nikki Online";
exec = "ynodesktop";
icon = "ynodesktop";
categories = [ "Game" ];
})
];
meta = with lib; {
description = "A desktop client for Yume Nikki Online with Discord Rich Presence";
homepage = "https://github.com/affectioned/ynodesktop";
license = licenses.mit;
platforms = platforms.linux;
};
meta = with lib; {
description = "A desktop client for Yume Nikki Online with Discord Rich Presence";
homepage = "https://github.com/affectioned/ynodesktop";
license = licenses.mit;
platforms = platforms.linux;
};
}