Files
cosmetics/flake.nix
Gustavo "Guz" L de Mello af5bcd9ef8 feat: use item model definition to change model
use the item_model component instead of overriding a vanilla item model
definition to make the datapack/resourcepack more compatible with other
resourcepacks

created a javascript script to genenrate the item model, recipes and
translated text of items to streamline creation

changed returned item to poisonous potato since it doesn't has a use
2026-04-25 22:40:48 -03:00

62 lines
1.4 KiB
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
nixpkgs,
self,
...
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
in
f {
inherit pkgs;
inherit (pkgs) lib;
});
in {
devShells = forAllSystems ({
lib,
pkgs,
...
}: {
default = pkgs.mkShell {
shellHook = ''
set -a
source .env
set +a
'';
buildInputs = with pkgs; [
nodejs
gnumake
jq
zip
];
};
});
packages = forAllSystems ({pkgs, ...}: {
sixsides-cosmetics = pkgs.callPackage ({
lib,
gnumake,
jq,
stdenv,
zip,
}:
stdenv.mkDerivation {
name = "sixsides-cosmetics";
version = builtins.readFile ./VERSION;
buildInputs = [gnumake jq zip];
src = lib.cleanSource ./.;
dontBuild = true;
installPhase = ''
make release
cp "$(find -type f -name '*.zip' | head -n 1)" $out
'';
}) {};
default = self.packages.${pkgs.stdenv.hostPlatform.system}.sixsides-cosmetics;
});
};
}