Compare commits
6 Commits
7b0a09cf72
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
b43f2ace49
|
|||
|
ae29f9eefc
|
|||
| 90afe7c81a | |||
| 4ff256f9f6 | |||
| ee9745fef3 | |||
| e4d85d9e49 |
@@ -62,10 +62,11 @@ jobs:
|
||||
|
||||
system="$(nix eval --impure --raw --expr builtins.currentSystem)"
|
||||
|
||||
nix build --accept-flake-config --no-link --print-out-paths -L \
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure --accept-flake-config --no-link --print-out-paths -L \
|
||||
".#packages.${system}.musicpresence" \
|
||||
".#packages.${system}.vintage-story" \
|
||||
".#packages.${system}.swaytreesave" \
|
||||
".#packages.${system}.archon" \
|
||||
| tee built-paths.txt
|
||||
|
||||
- name: Push packages to Attic
|
||||
|
||||
8
flake.lock
generated
8
flake.lock
generated
@@ -74,16 +74,16 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1779467186,
|
||||
"narHash": "sha256-nOesoDCiXcUftqbRBMz9tt4blI5PvljMWbm3kuCA+0s=",
|
||||
"lastModified": 1780902259,
|
||||
"narHash": "sha256-q8yYEC5f1mFlQO9RGna4LTc9QrcvWunX6FYp83munkQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b77b3de8775677f84492abe84635f87b0e153f0f",
|
||||
"rev": "bd0ff2d3eac24699c3664d5966b9ef36f388e2ca",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.11",
|
||||
"ref": "nixos-26.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
description = "Miller Nix User Repository";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
darwin.url = "github:LnL7/nix-darwin";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
# sable-web = pkgs.callPackage ./common/sable.nix {};
|
||||
swaytreesave = pkgs.callPackage ./linux/swaytreesave.nix { };
|
||||
musicpresence = pkgs.callPackage ./linux/musicpresence.nix { };
|
||||
vintage-story = pkgs.callPackage ./linux/vintage-story.nix { };
|
||||
swaytreesave = pkgs.callPackage ./linux/swaytreesave.nix {};
|
||||
musicpresence = pkgs.callPackage ./linux/musicpresence.nix {};
|
||||
vintage-story = pkgs.callPackage ./linux/vintage-story.nix {};
|
||||
archon = pkgs.callPackage ./linux/archon.nix {};
|
||||
yubilock = pkgs.callPackage ./linux/yubilock/default.nix { };
|
||||
}
|
||||
|
||||
32
pkgs/linux/archon.nix
Normal file
32
pkgs/linux/archon.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
pname = "archon";
|
||||
version = "9.3.119";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/RPGLogs/Uploaders-archon/releases/download/v${version}/${pname}-v${version}.AppImage";
|
||||
hash = "sha256-mUsmaIxm3DZ1vvcwxpmDTWTj+UlFSv+jYkBrteL8xQk=";
|
||||
};
|
||||
|
||||
appimageContents = pkgs.appimageTools.extract {
|
||||
inherit pname version src;
|
||||
};
|
||||
in
|
||||
pkgs.appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = with pkgs; [ makeWrapper ];
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 "${appimageContents}/Archon App.desktop" "$out/share/applications/archon.desktop"
|
||||
install -Dm444 "${appimageContents}/Archon App.png" "$out/share/icons/hicolor/256x256/apps/archon.png"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "RPGLogs Archon uploader";
|
||||
homepage = "https://github.com/RPGLogs/Uploaders-archon";
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.linux;
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
mainProgram = "archon";
|
||||
};
|
||||
}
|
||||
@@ -1,48 +1,48 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
x11Support = true;
|
||||
waylandSupport = true;
|
||||
in pkgs.stdenv.mkDerivation (finalAttrs:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
in {
|
||||
pname = "vintagestory";
|
||||
version = "1.21.6";
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
versionCheckHook,
|
||||
cairo,
|
||||
libGLU,
|
||||
libglvnd,
|
||||
pipewire,
|
||||
libpulseaudio,
|
||||
dotnet-runtime_10,
|
||||
x11Support ? true,
|
||||
libxi,
|
||||
libxcursor,
|
||||
libx11,
|
||||
waylandSupport ? false,
|
||||
wayland ? null,
|
||||
libxkbcommon ? null,
|
||||
}:
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
assert x11Support || waylandSupport;
|
||||
assert waylandSupport -> wayland != null;
|
||||
assert waylandSupport -> libxkbcommon != null;
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "vintagestory";
|
||||
version = "1.22.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-LkiL/8W9MKpmJxtK+s5JvqhOza0BLap1SsaDvbLYR0c=";
|
||||
hash = "sha256-sa4Pj1DwT6W6LJCAYznmbyqPtMUTaLSNTkXS1imQp04=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
__structuredAttrs = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
runtimeLibs = with pkgs; [
|
||||
gtk2
|
||||
sqlite
|
||||
openal
|
||||
cairo
|
||||
libGLU
|
||||
SDL2
|
||||
freealut
|
||||
libglvnd
|
||||
pipewire
|
||||
libpulseaudio
|
||||
]
|
||||
++ lib.optionals x11Support (with pkgs.xorg; [
|
||||
libX11
|
||||
libXi
|
||||
libXcursor
|
||||
])
|
||||
++ lib.optionals waylandSupport (with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
]);
|
||||
|
||||
desktopItems = [
|
||||
(pkgs.makeDesktopItem {
|
||||
(makeDesktopItem {
|
||||
name = "vintagestory";
|
||||
desktopName = "Vintage Story";
|
||||
exec = "vintagestory";
|
||||
@@ -51,7 +51,7 @@ in pkgs.stdenv.mkDerivation (finalAttrs:
|
||||
categories = [ "Game" ];
|
||||
})
|
||||
|
||||
(pkgs.makeDesktopItem {
|
||||
(makeDesktopItem {
|
||||
name = "vsmodinstall-handler";
|
||||
desktopName = "Vintage Story 1-click Mod Install Handler";
|
||||
comment = "Handler for vintagestorymodinstall:// URI scheme";
|
||||
@@ -65,30 +65,37 @@ in pkgs.stdenv.mkDerivation (finalAttrs:
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/vintagestory $out/bin $out/share/pixmaps $out/share/fonts/truetype
|
||||
mkdir -p $out/share/vintagestory $out/bin $out/share/icons/hicolor/512x512/apps $out/share/fonts/truetype
|
||||
cp -r * $out/share/vintagestory
|
||||
cp $out/share/vintagestory/assets/gameicon.xpm $out/share/pixmaps/vintagestory.xpm
|
||||
install -Dm444 $out/share/vintagestory/assets/gameicon.png $out/share/icons/hicolor/512x512/apps/vintagestory.png
|
||||
cp $out/share/vintagestory/assets/game/fonts/*.ttf $out/share/fonts/truetype
|
||||
|
||||
rm -rvf $out/share/vintagestory/{install,run,server}.sh
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup =
|
||||
let
|
||||
runtimeLibs' = lib.strings.makeLibraryPath finalAttrs.runtimeLibs;
|
||||
in
|
||||
''
|
||||
makeWrapper ${lib.meta.getExe pkgs.dotnet-runtime_8} $out/bin/vintagestory \
|
||||
--prefix LD_LIBRARY_PATH : "${runtimeLibs'}" \
|
||||
--set-default mesa_glthread true \
|
||||
${lib.strings.optionalString waylandSupport ''
|
||||
--set-default OPENTK_4_USE_WAYLAND 1 \
|
||||
''} \
|
||||
makeWrapperArgs = [
|
||||
"--set-default"
|
||||
"mesa_glthread"
|
||||
"true"
|
||||
]
|
||||
++ lib.optionals waylandSupport [
|
||||
"--set-default"
|
||||
"OPENTK_4_USE_WAYLAND"
|
||||
"1"
|
||||
];
|
||||
|
||||
runtimeLibraryPath = lib.makeLibraryPath finalAttrs.passthru.runtimeLibs;
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$runtimeLibraryPath")
|
||||
|
||||
makeWrapper ${lib.meta.getExe dotnet-runtime_10} $out/bin/vintagestory \
|
||||
"''${makeWrapperArgs[@]}" \
|
||||
--add-flags $out/share/vintagestory/Vintagestory.dll
|
||||
|
||||
makeWrapper ${lib.meta.getExe pkgs.dotnet-runtime_8} $out/bin/vintagestory-server \
|
||||
--prefix LD_LIBRARY_PATH : "${runtimeLibs'}" \
|
||||
--set-default mesa_glthread true \
|
||||
makeWrapper ${lib.getExe dotnet-runtime_10} $out/bin/vintagestory-server \
|
||||
"''${makeWrapperArgs[@]}" \
|
||||
--add-flags $out/share/vintagestory/VintagestoryServer.dll
|
||||
|
||||
find "$out/share/vintagestory/assets/" -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do
|
||||
@@ -96,5 +103,27 @@ in pkgs.stdenv.mkDerivation (finalAttrs:
|
||||
ln -sf "$filename" "''${file%/*}"/"''${filename,,}"
|
||||
done
|
||||
'';
|
||||
}
|
||||
)
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
runtimeLibs = [
|
||||
cairo
|
||||
libGLU
|
||||
libglvnd
|
||||
pipewire
|
||||
libpulseaudio
|
||||
]
|
||||
++ lib.optionals x11Support [
|
||||
libx11
|
||||
libxi
|
||||
libxcursor
|
||||
]
|
||||
++ lib.optionals waylandSupport [
|
||||
wayland
|
||||
libxkbcommon
|
||||
];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user