mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-09 16:33:57 -05:00
Compare commits
2 commits
3638372cd1
...
8d82feb56f
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d82feb56f | |||
| 22734d06da |
2 changed files with 22 additions and 13 deletions
|
|
@ -1,6 +1,25 @@
|
||||||
{ self, ... }@inputs:
|
{ self, ... }@inputs:
|
||||||
|
myLib: lib:
|
||||||
|
let
|
||||||
|
systemDependent = {
|
||||||
|
appendSystem = system: x: "${x}-${system}";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
inherit systemDependent;
|
||||||
|
|
||||||
|
__functor =
|
||||||
|
self: system:
|
||||||
|
let
|
||||||
|
systemDependent = builtins.mapAttrs (_: v: v system) self.sysDependantFuncs;
|
||||||
|
in
|
||||||
|
self
|
||||||
|
// {
|
||||||
|
inherit systemDependent;
|
||||||
|
}
|
||||||
|
// systemDependent;
|
||||||
|
|
||||||
myLib: lib: {
|
|
||||||
overlay = import ./overlay.nix inputs;
|
overlay = import ./overlay.nix inputs;
|
||||||
|
|
||||||
wrench = lib.flip lib.pipe;
|
wrench = lib.flip lib.pipe;
|
||||||
|
|
@ -135,3 +154,4 @@ myLib: lib: {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// systemDependent
|
||||||
|
|
|
||||||
|
|
@ -37,16 +37,5 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
allowSubstitutes = false;
|
allowSubstitutes = false;
|
||||||
|
|
||||||
meta = {
|
meta.mainProgram = "minecraft-server";
|
||||||
description = "High-performance Minecraft Server";
|
|
||||||
homepage = "https://papermc.io/";
|
|
||||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
||||||
license = lib.licenses.gpl3Only;
|
|
||||||
platforms = lib.platforms.unix;
|
|
||||||
maintainers = with lib.maintainers; [
|
|
||||||
aaronjanse
|
|
||||||
neonfuz
|
|
||||||
];
|
|
||||||
mainProgram = "minecraft-server";
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue