From fe1b735eaba855e6800389264dedd439f0040018 Mon Sep 17 00:00:00 2001 From: Roland Coeurjoly Date: Tue, 19 May 2026 21:51:42 +0200 Subject: [PATCH] Add OpenXC7 nix dev shell --- flake.lock | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 13 +++++++ 2 files changed, 125 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ea01b97 --- /dev/null +++ b/flake.lock @@ -0,0 +1,112 @@ +{ + "nodes": { + "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" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "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" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1725634671, + "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "toolchain-nix": "toolchain-nix" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "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" + } + }, + "toolchain-nix": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1772489597, + "narHash": "sha256-DQGLWsE2F4QUzO8m0pBQnt5JzKs1k8qrXXVyAARirp0=", + "owner": "openXC7", + "repo": "toolchain-nix", + "rev": "f004e752924def8d5031941dfd9d5bfbac1ce242", + "type": "github" + }, + "original": { + "owner": "openXC7", + "repo": "toolchain-nix", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..297a413 --- /dev/null +++ b/flake.nix @@ -0,0 +1,13 @@ +{ + description = "UberDDR3 OpenXC7 development shell"; + + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + toolchain-nix.url = "github:openXC7/toolchain-nix"; + }; + + outputs = { flake-utils, toolchain-nix, ... }: + flake-utils.lib.eachDefaultSystem (system: { + devShells.default = toolchain-nix.devShell.${system}; + }); +}