From c164298bcad72c1280555d549bee6c26b9ddfb5c Mon Sep 17 00:00:00 2001 From: LDprg Date: Sat, 2 Mar 2024 18:17:43 +0100 Subject: [PATCH] fix bad code --- flake.lock | 26 ++++++-------------------- flake.nix | 12 +++++------- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/flake.lock b/flake.lock index c85c7c2..a373f74 100644 --- a/flake.lock +++ b/flake.lock @@ -3,19 +3,12 @@ "JustEnoughMod": { "flake": false, "locked": { - "lastModified": 1709391633, - "narHash": "sha256-tWoKwR8DjL1GeAdVMydDUpM4oCOsfxJoBL4ZH5Kyxuk=", - "ref": "main", - "rev": "f2a73c43b82a474d45c49c5c9f9ddd5c3a31415a", - "revCount": 112, - "submodules": true, - "type": "git", + "narHash": "sha256-TwF+x1B0O4WpCv/DUv/XT6uQU15iAi3h+w7m0FG/GiI=", + "type": "file", "url": "https://github.com/JustEnoughMod/JustEnoughMod" }, "original": { - "ref": "main", - "submodules": true, - "type": "git", + "type": "file", "url": "https://github.com/JustEnoughMod/JustEnoughMod" } }, @@ -41,19 +34,12 @@ "dylib": { "flake": false, "locked": { - "lastModified": 1708884090, - "narHash": "sha256-bsUoCK+1Hp8IsuCina153+ob5d5bBGmFawKP3YfImuQ=", - "ref": "main", - "rev": "f1ef935d90f17d0b29b72c5bf401e7b4d0328bc4", - "revCount": 6, - "submodules": true, - "type": "git", + "narHash": "sha256-ZPo1umNuwkEZ+hVVeIqLZVklhD729r1i+kI3/ryZrew=", + "type": "file", "url": "https://github.com/JustEnoughMod/dylib.meson" }, "original": { - "ref": "main", - "submodules": true, - "type": "git", + "type": "file", "url": "https://github.com/JustEnoughMod/dylib.meson" } }, diff --git a/flake.nix b/flake.nix index 8a0175c..6e4b68c 100644 --- a/flake.nix +++ b/flake.nix @@ -5,24 +5,18 @@ pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; bgfx = { url = "https://github.com/JustEnoughMod/bgfx.meson"; - ref="main"; + ref = "main"; flake = false; type = "git"; submodules = true; }; dylib = { url = "https://github.com/JustEnoughMod/dylib.meson"; - ref="main"; flake = false; - type = "git"; - submodules = true; }; JustEnoughMod = { url = "https://github.com/JustEnoughMod/JustEnoughMod"; - ref="main"; flake = false; - type = "git"; - submodules = true; }; }; @@ -187,6 +181,10 @@ }; }; + devShells.precommit = mkShell { + inherit (self.checks.${system}.pre-commit-check) shellHook; + }; + devShells.default = JustEnoughModCore-shell; packages.default = JustEnoughModCore; });