Compare commits

...

2 Commits

7 changed files with 57 additions and 19 deletions

View File

@ -8,3 +8,4 @@ flake.nix
flake.lock
.envrc
.direnv/
nix/

View File

@ -10,5 +10,7 @@
buildInputs = with pkgs; [ packwiz ];
};
});
packages = eachSystem (system: let pkgs = import nixpkgs { inherit system; };
in pkgs.callPackages ./nix/packages { });
};
}

View File

@ -173,11 +173,6 @@ file = "mods/cull-less-leaves.pw.toml"
hash = "39eb9db990032d949909f079ada415ffda18b372ec5d9b23ab95652d88474131"
metafile = true
[[files]]
file = "mods/distanthorizons.pw.toml"
hash = "fe79cc78adf75a5aa3f32b2ac61a141ee7a4db1baebf628bee058a9c4381b255"
metafile = true
[[files]]
file = "mods/dynamic-fps.pw.toml"
hash = "5d08ee5a9dad38ed87772d437d7e1779fecc0baa4a0e6d33b324bce9908c60ea"

View File

@ -1,13 +0,0 @@
name = "Distant Horizons"
filename = "DistantHorizons-2.0.1-a-1.20.1.jar"
side = "client"
[download]
url = "https://cdn.modrinth.com/data/uCdwusMi/versions/fAVxiMK6/DistantHorizons-2.0.1-a-1.20.1.jar"
hash-format = "sha1"
hash = "b42adab2ec0a2919db552a7acbe71196eb6e183c"
[update]
[update.modrinth]
mod-id = "uCdwusMi"
version = "fAVxiMK6"

6
nix/packages/default.nix Normal file
View File

@ -0,0 +1,6 @@
{ callPackage }:
let
shaders = callPackage ./shaders.nix {};
in {
inherit (shaders) bliss-dh complementary-reimagined-dh rethinking-voxels-dh;
}

47
nix/packages/shaders.nix Normal file
View File

@ -0,0 +1,47 @@
{ stdenvNoCC, fetchFromGitHub, zip }:
let
makeShaderPackage = {
name,
src,
}: stdenvNoCC.mkDerivation {
inherit name src;
phases = [ "installPhase" ];
buildInputs = [ zip ];
installPhase = ''
cd "$src"
mkdir -p "$out"
zip -r "$out/${name}.zip" .
'';
};
in
{
bliss-dh = makeShaderPackage {
name = "Bliss-DH";
src = fetchFromGitHub {
owner = "X0nk";
repo = "Bliss-Shader";
rev = "1cd49fe249db4cfeb102283fdc068e9cc1549e3e";
hash = "sha256-0R+aebM2Cztkdj4020CUTr9ABwFyG9nEu7Op0K9k6+w=";
};
};
complementary-reimagined-dh = makeShaderPackage {
name = "ComplementaryReimagined-DH";
src = fetchFromGitHub {
owner = "Steveplays28";
repo = "ComplementaryReimagined";
rev = "c5cb31757c27550ae30b9c462fe3ed1993b39d9d";
hash = "sha256-1HOscJ8afNC7t4yiobJBJgom7pDpwZPdA3B3EILlyWY=";
};
};
rethinking-voxels-dh = makeShaderPackage {
name = "RethinkingVoxels-DH";
src = fetchFromGitHub {
owner = "Steveplays28";
repo = "ComplementaryReimagined";
rev = "343915b7b18e1d83187fae1ea1f14eac90d4d09d";
hash = "sha256-Hu+JeINQC09OS1WY1kpagoRH5Awnp4YhacWusQgRsqc=";
};
};
}

View File

@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "f7123de8d5845fbb5e72fcadc039786363e55838fc5c614472c2fc56f937ffb3"
hash = "2141272508fa0ef3ac095336c85c381abcb6f97e40f6b166dc30f3b44c7134fc"
[versions]
minecraft = "1.20.1"