add custom openmw

This commit is contained in:
Sean Kovacs 2026-01-15 18:08:10 -05:00
commit 59c15a65ad
Signed by: sckova
GPG key ID: 00F325187C68651A
4 changed files with 42 additions and 0 deletions

17
flake.lock generated
View file

@ -493,6 +493,22 @@
"type": "github"
}
},
"openmw": {
"flake": false,
"locked": {
"lastModified": 1768342692,
"narHash": "sha256-XLlg+JKE7mvbytjPq4iue9JTVA/Uv2bn1mYS1OEIWFY=",
"owner": "OpenMW",
"repo": "openmw",
"rev": "3ac8eb07876e1d0a5fe52baca70d0b972cf1e33c",
"type": "gitlab"
},
"original": {
"owner": "OpenMW",
"repo": "openmw",
"type": "gitlab"
}
},
"plasma-manager": {
"inputs": {
"home-manager": [
@ -529,6 +545,7 @@
"nixvim": "nixvim",
"noctalia": "noctalia",
"nur": "nur",
"openmw": "openmw",
"plasma-manager": "plasma-manager",
"spicetify-nix": "spicetify-nix"
}

View file

@ -56,6 +56,11 @@
url = "github:nix-community/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
};
openmw = {
url = "gitlab:OpenMW/openmw";
flake = false;
};
};
outputs = {
@ -72,6 +77,7 @@
nur,
nixvim,
apple-silicon,
openmw,
...
}: let
# All systems we want to support for the generic VM
@ -112,6 +118,13 @@
noctalia.overlays.default
nur.overlays.default
(import ./packages/overlay.nix)
(final: prev: {
openmw-git = {
src = openmw;
version = openmw.shortRev or openmw.rev or "unknown";
date = openmw.lastModifiedDate or "unknown";
};
})
];
};
nix = {

View file

@ -0,0 +1,8 @@
{
openmw,
openmw-git,
}:
openmw.overrideAttrs (oldAttrs: {
version = "unstable-${openmw-git.date}-${openmw-git.version}";
src = openmw-git.src;
})

View file

@ -1,6 +1,10 @@
final: prev: {
spotify-webapp = final.callPackage ./spotify-webapp {};
altserver-linux = final.callPackage ./altserver {};
openmw = final.callPackage ./openmw {
openmw = prev.openmw;
inherit (final) openmw-git;
};
linuxPackages_asahi = prev.linuxPackages_asahi.override {
_kernelPatches = [