add mc server
This commit is contained in:
parent
43e206bd6d
commit
973313256a
6 changed files with 177 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
unstable,
|
||||
pkgs,
|
||||
inputs,
|
||||
system,
|
||||
nix-version,
|
||||
|
|
@ -39,6 +40,29 @@ in
|
|||
# ../../modules/wine.nix
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
|
||||
|
||||
environment.systemPackages = [
|
||||
(pkgs.ferium.overrideAttrs (
|
||||
final: prev: rec {
|
||||
cargoHash = "sha256-yedl4KQCpT7Ai1EPvwD5kzhkHesIjGVAcxKjp5k2jmI=";
|
||||
version = "4.7.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "gorilla-devs";
|
||||
repo = prev.pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-jj3BdaxH7ofhHNF2eu+burn6+/0bPQQZ8JfjXAFyN4A=";
|
||||
};
|
||||
|
||||
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
|
||||
inherit (final) pname src version;
|
||||
useFetchCargoVendor = true;
|
||||
hash = final.cargoHash;
|
||||
};
|
||||
}
|
||||
))
|
||||
];
|
||||
|
||||
# Overrides
|
||||
networking.hostName = lib.mkForce device-name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue