summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2025-01-16 00:13:13 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2025-01-16 00:13:13 +0200
commit9801421cfd908980125209c07751767f5858dd5e (patch)
tree8c7361fb42b0f65194ea06a0703ca0338b52ea35
parent717f3c96f5ed041d574346c8ec50dbf5d89dcdbb (diff)
downloadrpn-parse-rs-9801421cfd908980125209c07751767f5858dd5e.tar.gz
rpn-parse-rs-9801421cfd908980125209c07751767f5858dd5e.tar.bz2
rpn-parse-rs-9801421cfd908980125209c07751767f5858dd5e.zip
chore(inputs): add fenix input; stable rust
-rw-r--r--devenv.lock37
-rw-r--r--devenv.nix4
-rw-r--r--devenv.yaml17
3 files changed, 45 insertions, 13 deletions
diff --git a/devenv.lock b/devenv.lock
index 3a86f3f..7dca477 100644
--- a/devenv.lock
+++ b/devenv.lock
@@ -16,6 +16,26 @@
"type": "github"
}
},
+ "fenix": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "rust-analyzer-src": "rust-analyzer-src"
+ },
+ "locked": {
+ "lastModified": 1736836313,
+ "owner": "nix-community",
+ "repo": "fenix",
+ "rev": "056c9393c821a4df356df6ce7f14c722dc8717ec",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "fenix",
+ "type": "github"
+ }
+ },
"flake-compat": {
"flake": false,
"locked": {
@@ -90,9 +110,26 @@
"root": {
"inputs": {
"devenv": "devenv",
+ "fenix": "fenix",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
}
+ },
+ "rust-analyzer-src": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1736883839,
+ "owner": "rust-lang",
+ "repo": "rust-analyzer",
+ "rev": "40710f27486e244eca2d48b830ea2ecb8474d15a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "rust-lang",
+ "ref": "nightly",
+ "repo": "rust-analyzer",
+ "type": "github"
+ }
}
},
"root": "root",
diff --git a/devenv.nix b/devenv.nix
index 9363b5f..1f35835 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -5,7 +5,7 @@
env.GREET = "devenv";
# https://devenv.sh/packages/
- packages = [ pkgs.git ];
+ packages = with pkgs; [ git ];
# https://devenv.sh/languages/
# languages.rust.enable = true;
@@ -40,6 +40,8 @@
languages.rust = {
enable = true;
+ channel = "stable";
+ #targets = [ "x86_64-pc-windows-gnu" ];
};
# https://devenv.sh/pre-commit-hooks/
# pre-commit.hooks.shellcheck.enable = true;
diff --git a/devenv.yaml b/devenv.yaml
index 116a2ad..2bbabf4 100644
--- a/devenv.yaml
+++ b/devenv.yaml
@@ -1,15 +1,8 @@
-# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
-
-# If you're using non-OSS software, you can set allowUnfree to true.
-# allowUnfree: true
-
-# If you're willing to use a package that's vulnerable
-# permittedInsecurePackages:
-# - "openssl-1.1.1w"
-
-# If you have more than one devenv you can merge them
-#imports:
-# - ./backend
+ fenix:
+ url: github:nix-community/fenix
+ inputs:
+ nixpkgs:
+ follows: nixpkgs