Compare commits
3 commits
bd785a63c9
...
8a129be532
Author | SHA1 | Date | |
---|---|---|---|
Artemis Tosini | 8a129be532 | ||
Artemis Tosini | 489dcfacd7 | ||
Artemis Tosini | 39326b7975 |
23
flake.lock
23
flake.lock
|
@ -10,11 +10,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1711597760,
|
||||
"narHash": "sha256-SQ5ixJU33jjgSOrloFkuhvbKPy2FVREVNc96caEHYAY=",
|
||||
"lastModified": 1717636858,
|
||||
"narHash": "sha256-4NTFcQODSvySNCBz++O5SrcSFwU/xyqDS++s6HIzUEU=",
|
||||
"ref": "refs/heads/canon",
|
||||
"rev": "be4c446e1dc3391b353b07a701bed21db5b025bb",
|
||||
"revCount": 46,
|
||||
"rev": "4dc6a6a61ae68c559f56f28c778ddb1ebc8c9f9e",
|
||||
"revCount": 49,
|
||||
"type": "git",
|
||||
"url": "https://git.mildlyfunctional.gay/artemist/packages.git"
|
||||
},
|
||||
|
@ -25,11 +25,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1716715802,
|
||||
"narHash": "sha256-usk0vE7VlxPX8jOavrtpOqphdfqEQpf9lgedlY/r66c=",
|
||||
"lastModified": 1720181791,
|
||||
"narHash": "sha256-i4vJL12/AdyuQuviMMd1Hk2tsGt02hDNhA0Zj1m16N8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e2dd4e18cc1c7314e24154331bae07df76eb582f",
|
||||
"rev": "4284c2b73c8bce4b46a6adf23e16d9e2ec8da4bb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -49,19 +49,16 @@
|
|||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1716689906,
|
||||
"narHash": "sha256-tQYQM9zT4P1fFf739/AIZuTIGPxtEIpV7K7VieU60Io=",
|
||||
"lastModified": 1720318855,
|
||||
"narHash": "sha256-w3CCVK9LJ5aznXGkO1IyAlbvMNJfyA+dBF7Z1Zwx1LA=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "3b6e1e221b04965427f3eee11fd6b6ea7b5f579b",
|
||||
"rev": "3eed08a074cd2000884a69d448d70da2843f7103",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
64
flake.nix
64
flake.nix
|
@ -13,8 +13,16 @@
|
|||
inputs.flake-utils.follows = "utils";
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, utils, artemist-packages, rust-overlay }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
artemist-packages,
|
||||
rust-overlay,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
@ -23,9 +31,9 @@
|
|||
rust-overlay.overlays.default
|
||||
];
|
||||
};
|
||||
in rec {
|
||||
devShells.zephyr =
|
||||
artemist-packages.devShells.${system}.zephyr.override {
|
||||
in
|
||||
rec {
|
||||
devShells.zephyr = artemist-packages.devShells.${system}.zephyr.override {
|
||||
toolchains = with pkgs.zephyrPackages.toolchains; [
|
||||
arm-zephyr-eabi
|
||||
riscv64-zephyr-elf
|
||||
|
@ -43,9 +51,14 @@
|
|||
zephyrSrc = null;
|
||||
modules = [ ];
|
||||
};
|
||||
devShells.rust-embedded = let
|
||||
devShells.rust-embedded =
|
||||
let
|
||||
rust = pkgs.rust-bin.stable.latest.default.override {
|
||||
extensions = [ "rust-src" "llvm-tools-preview" "clippy" ];
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"llvm-tools-preview"
|
||||
"clippy"
|
||||
];
|
||||
# just use all of them, why not
|
||||
targets = [
|
||||
"thumbv6m-none-eabi"
|
||||
|
@ -66,7 +79,8 @@
|
|||
};
|
||||
cargoHash = "sha256-dhPp93AH4VlOVJWXMMUwv8b53vLPdBY3WyaXE4kcEm4=";
|
||||
};
|
||||
in with pkgs;
|
||||
in
|
||||
with pkgs;
|
||||
mkShell {
|
||||
packages = [
|
||||
cargo-binutils
|
||||
|
@ -82,13 +96,29 @@
|
|||
];
|
||||
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";
|
||||
};
|
||||
devShells.avr = with pkgs;
|
||||
devShells.rust =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
rustc
|
||||
cargo
|
||||
rustfmt
|
||||
clippy
|
||||
];
|
||||
RUST_SRC_PATH = "${rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
};
|
||||
devShells.avr =
|
||||
with pkgs;
|
||||
pkgsCross.avr.mkShell {
|
||||
packages = [ avrdude gnumake ];
|
||||
packages = [
|
||||
avrdude
|
||||
gnumake
|
||||
];
|
||||
|
||||
LIBC = pkgsCross.avr.avrlibc;
|
||||
};
|
||||
devShells.emoji = with pkgs;
|
||||
devShells.emoji =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
packages = [
|
||||
chromedriver
|
||||
|
@ -100,7 +130,9 @@
|
|||
python3Packages.trio
|
||||
python3Packages.gql
|
||||
(python3Packages.selenium.overrideAttrs (old: {
|
||||
postInstall = old.postInstall + ''
|
||||
postInstall =
|
||||
old.postInstall
|
||||
+ ''
|
||||
for ver in v85 v120 v121 v122; do
|
||||
DEVTOOLS=../common/devtools/chromium/$ver
|
||||
for proto in js browser; do
|
||||
|
@ -117,15 +149,15 @@
|
|||
done
|
||||
'';
|
||||
|
||||
nativeBuildInputs = old.nativeBuildInputs
|
||||
++ [ python3Packages.inflection ];
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [ python3Packages.inflection ];
|
||||
}))
|
||||
];
|
||||
|
||||
CHROME = "${chromium}/bin/chromium";
|
||||
};
|
||||
devShells.typst = with pkgs; mkShell { packages = [ typst ]; };
|
||||
formatter = pkgs.nixfmt;
|
||||
});
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
|
|
@ -12,4 +12,5 @@ let
|
|||
}
|
||||
];
|
||||
};
|
||||
in system.config.system.build.sdImage
|
||||
in
|
||||
system.config.system.build.sdImage
|
||||
|
|
|
@ -7,7 +7,8 @@ let
|
|||
rev = "1.4.0";
|
||||
sha256 = "sha256-i3IAaNcd0EfKNvU104a776O1poDAChlx1m+nP8iFn8E=";
|
||||
};
|
||||
in mkShell rec {
|
||||
in
|
||||
mkShell rec {
|
||||
name = "pico-env";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
|
1
rust/.envrc
Normal file
1
rust/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake ..#rust
|
Loading…
Reference in a new issue