From 98dc954587c24ff677c70f44fcd0eec170a4c4a2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 11 Aug 2024 22:29:00 +0100 Subject: [PATCH] nix: setup a devshell to work on teh md --- flake.lock | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++-- flake.nix | 12 +++++-- 2 files changed, 112 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 128e4d5..2a16a1f 100644 --- a/flake.lock +++ b/flake.lock @@ -1,6 +1,72 @@ { "nodes": { + "bfom": { + "inputs": { + "naersk": "naersk", + "nixpkgs": "nixpkgs_2", + "utils": "utils" + }, + "locked": { + "lastModified": 1723391194, + "narHash": "sha256-04UThV4LZNRHg/+GbEl7M2ginWbm8FrQ5jBVmYcroNg=", + "owner": "silver_rust", + "repo": "bfom", + "rev": "fffd69b6433a2d2fd359b92e3816ae9938b3e99c", + "type": "gitlab" + }, + "original": { + "owner": "silver_rust", + "repo": "bfom", + "type": "gitlab" + } + }, + "naersk": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1713520724, + "narHash": "sha256-CO8MmVDmqZX2FovL75pu5BvwhW+Vugc7Q6ze7Hj8heI=", + "owner": "nix-community", + "repo": "naersk", + "rev": "c5037590290c6c7dae2e42e7da1e247e54ed2d49", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "naersk", + "type": "github" + } + }, "nixpkgs": { + "locked": { + "lastModified": 1714091391, + "narHash": "sha256-68n3GBvlm1MIeJXadPzQ3v8Y9sIW3zmv8gI5w5sliC8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4c86138ce486d601d956a165e2f7a0fc029a03c1", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1714091391, + "narHash": "sha256-68n3GBvlm1MIeJXadPzQ3v8Y9sIW3zmv8gI5w5sliC8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4c86138ce486d601d956a165e2f7a0fc029a03c1", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1695837737, "narHash": "sha256-KcqmJ5hNacLuE7fkz5586kp/vt4NLo6+Prq3DMgrxpQ=", @@ -16,8 +82,9 @@ }, "root": { "inputs": { - "nixpkgs": "nixpkgs", - "utils": "utils" + "bfom": "bfom", + "nixpkgs": "nixpkgs_3", + "utils": "utils_2" } }, "systems": { @@ -35,10 +102,43 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "inputs": { "systems": "systems" }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "utils_2": { + "inputs": { + "systems": "systems_2" + }, "locked": { "lastModified": 1694529238, "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", diff --git a/flake.nix b/flake.nix index 105ef01..bfaf4b1 100644 --- a/flake.nix +++ b/flake.nix @@ -1,11 +1,12 @@ { - description = "Skynet Almnui Renew"; + description = "Skynet Wiki"; inputs = { utils.url = "github:numtide/flake-utils"; + bfom.url = "gitlab:silver_rust/bfom"; }; - outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: + outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; in rec { @@ -15,6 +16,13 @@ src = self; installPhase = "mkdir -p $out; cp -R src/* $out"; }; + + devShells.x86_64-linux.default = pkgs.mkShell { + name = "Skynet Wiki env"; + nativeBuildInputs = [ + bfom.defaultPackage.x86_64-linux + ]; + }; } ); } \ No newline at end of file