Fix pio in flake

This commit is contained in:
GHOSCHT 2024-12-25 18:23:44 +01:00
parent 03af485b33
commit 80ad520df4
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 36 additions and 64 deletions

View file

@ -1,59 +1,25 @@
{ {
"nodes": { "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"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1611574965, "lastModified": 1734649271,
"narHash": "sha256-IYtGS077nJFIqSq6Cb8WEJwbqqd4K7S4vUuwPZKfLeo=", "narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs-channels", "repo": "nixpkgs",
"rev": "4762fba469e2baa82f983b262e2c06ac2fdaae67", "rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs-channels", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "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", "root": "root",

View file

@ -1,29 +1,35 @@
{ {
inputs = { inputs = {
nixpkgs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
url = "github:nixos/nixpkgs-channels/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
}; };
outputs = {
nixpkgs, outputs =
flake-utils, { self
... , nixpkgs
}: ,
flake-utils.lib.eachDefaultSystem ( }:
system: let let
pkgs = import nixpkgs { supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
inherit system; forEachSupportedSystem = f:
}; nixpkgs.lib.genAttrs supportedSystems (system:
in rec { f {
devShell = pkgs.mkShell { pkgs = import nixpkgs { inherit system; };
buildInputs = with pkgs; [ });
platformio in
gnumake {
]; devShells = forEachSupportedSystem ({ pkgs }: {
}; default =
} pkgs.mkShell.override
); {
# Override stdenv in order to change compiler:
# stdenv = pkgs.clangStdenv;
}
{
packages = with pkgs; [
gnumake
platformio
];
};
});
};
} }