Changes
2 changed files (+49/-67)
-
-
@@ -44,24 +44,6 @@"type": "github" } }, "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "mkElmDerivation": { "inputs": { "elm-spa": "elm-spa",
-
@@ -140,25 +122,9 @@}, "root": { "inputs": { "flake-utils": "flake-utils", "mkElmDerivation": "mkElmDerivation", "nixpkgs": "nixpkgs" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root",
-
-
-
@@ -15,7 +15,6 @@{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; mkElmDerivation = { url = "github:jeslie0/mkElmDerivation"; inputs.nixpkgs.follows = "nixpkgs";
-
@@ -26,24 +25,35 @@{ self, nixpkgs, flake-utils, mkElmDerivation, }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = import nixpkgs { overlays = [ mkElmDerivation.overlays.default ]; inherit system; }; in rec { packages = { let supportedSystems = [ "x86_64-linux" ]; forEachSystems = f: nixpkgs.lib.genAttrs supportedSystems ( system: f { inherit system; pkgs = import nixpkgs { inherit system; overlays = [ mkElmDerivation.overlays.default ]; }; } ); in rec { packages = forEachSystems ( { pkgs, ... }: { demo = pkgs.callPackage ./demo { }; docs = pkgs.callPackage ./docs { }; }; } ); formatter = pkgs.buildFHSEnv { formatter = forEachSystems ( { pkgs, ... }: pkgs.buildFHSEnv { name = "fhs-dprint"; runScript = "dprint fmt";
-
@@ -63,9 +73,11 @@zig_0_16 ]; }; } ); apps = { apps = forEachSystems ( { pkgs, ... }: { # Code formatting platform written in Rust # https://dprint.dev/ dprint = {
-
@@ -86,23 +98,27 @@type = "app"; program = pkgs.lib.getExe pkgs.reuse; }; }; } ); devShell = pkgs.mkShell { packages = with pkgs; [ # > Language server implementation for Elm # https://github.com/elm-tooling/elm-language-server elmPackages.elm-language-server devShells = forEachSystems ( { pkgs, system }: { default = pkgs.mkShell { packages = with pkgs; [ # > Language server implementation for Elm # https://github.com/elm-tooling/elm-language-server elmPackages.elm-language-server # > Zig LSP implementation + Zig Language Server # https://github.com/zigtools/zls zls_0_16 ] ++ packages.demo.nativeBuildInputs ++ packages.docs.nativeBuildInputs; }; } ); # > Zig LSP implementation + Zig Language Server # https://github.com/zigtools/zls zls_0_16 ] ++ packages.${system}.demo.nativeBuildInputs ++ packages.${system}.docs.nativeBuildInputs; }; } ); }; }
-