Compare commits
2 commits
6656b07f2c
...
22c0284119
Author | SHA1 | Date | |
---|---|---|---|
Artemis Tosini | 22c0284119 | ||
Artemis Tosini | 0ceb6d3a5f |
36
flake.lock
36
flake.lock
|
@ -18,41 +18,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"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"
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
70
flake.nix
70
flake.nix
|
@ -3,42 +3,28 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit (nixpkgs) lib;
|
||||
makePkgs =
|
||||
system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
};
|
||||
inherit (pkgs) lib;
|
||||
names = builtins.attrNames (self.overlays.default pkgs pkgs);
|
||||
in
|
||||
{
|
||||
devShells = {
|
||||
plotter = pkgs.callPackage ./shells/plotter { };
|
||||
ryujinx = pkgs.callPackage ./shells/ryujinx { };
|
||||
zephyr = pkgs.callPackage ./shells/zephyr { };
|
||||
};
|
||||
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
packages = builtins.listToAttrs (
|
||||
lib.concatMap (
|
||||
name:
|
||||
let
|
||||
pkg = pkgs.${name};
|
||||
in
|
||||
lib.optional (builtins.typeOf pkg == "set") {
|
||||
inherit name;
|
||||
value =
|
||||
forAllSystems =
|
||||
f:
|
||||
lib.listToAttrs (
|
||||
map (system: {
|
||||
name = system;
|
||||
value = f (makePkgs system);
|
||||
}) lib.systems.flakeExposed
|
||||
);
|
||||
makeDummy =
|
||||
pkg:
|
||||
if lib.isDerivation pkg then
|
||||
pkg
|
||||
else
|
||||
|
@ -47,12 +33,32 @@
|
|||
type = "derivation";
|
||||
name = "dummy-attrset";
|
||||
};
|
||||
in
|
||||
{
|
||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
plotter = pkgs.callPackage ./shells/plotter { };
|
||||
ryujinx = pkgs.callPackage ./shells/ryujinx { };
|
||||
zephyr = pkgs.callPackage ./shells/zephyr { };
|
||||
});
|
||||
|
||||
packages = forAllSystems (
|
||||
pkgs:
|
||||
builtins.listToAttrs (
|
||||
let
|
||||
names = builtins.attrNames (self.overlays.default pkgs pkgs);
|
||||
in
|
||||
lib.concatMap (
|
||||
name:
|
||||
lib.optional (builtins.typeOf pkgs.${name} == "set") {
|
||||
inherit name;
|
||||
value = makeDummy pkgs.${name};
|
||||
}
|
||||
) names
|
||||
);
|
||||
}
|
||||
)
|
||||
// {
|
||||
);
|
||||
|
||||
overlays.default = final: prev: {
|
||||
apotris = final.callPackage ./packages/apotris { };
|
||||
attic = final.callPackage ./packages/attic { };
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"x86_64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796b_x86_64.tgz", "version": "7.96b", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-UsDP+wMS7ZeWMQBObwv5RxbwuWU8nLnHes7LEXK6imE="}, "i686-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796b_i686.tgz", "version": "7.96b", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-FhKc5FkVQzUDJ1oGDGDgDxadjbx0IX3zOaW9ru5YiI8="}, "armv7l-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796b_arm.tgz", "version": "7.96b", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-6nTQGQpkbqQntheQqiUAdVS4rp30nl2KRUn5Adsfeoo="}, "aarch64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796b_arm64.tgz", "version": "7.96b", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-ueIGdqfuIRCuEwaPkgZMgghO9DU11IboLLMryg/mxQ8="}}
|
||||
{"x86_64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796t_x86_64.tgz", "version": "7.96t", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-1fBQJncpdpqQa0UbpnZrYAskmPGED+nGDfMWBUXUi4U="}, "i686-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796t_i686.tgz", "version": "7.96t", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-GZ/c+LIBa+qTJJI0vFdrF7YeCAXY2dq8Trbw7ZCgZOY="}, "armv7l-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796t_arm.tgz", "version": "7.96t", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-VgwOCiyS9RyrQ4MMBmQ8uOMXrZXXJxiGuOPwgmxWQ0g="}, "aarch64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V796t_arm64.tgz", "version": "7.96t", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-Yv8xDRM/1G/JcEfHU8CYeGgfHuYRoVSixtRswlUOuOk="}}
|
Loading…
Reference in a new issue