Created
August 14, 2024 22:24
-
-
Save antipatico/0bf60ad88c3cc7a934ae3c106a01ce38 to your computer and use it in GitHub Desktop.
lovely-injector flake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"fenix": { | |
"inputs": { | |
"nixpkgs": "nixpkgs", | |
"rust-analyzer-src": "rust-analyzer-src" | |
}, | |
"locked": { | |
"lastModified": 1723098624, | |
"narHash": "sha256-TFg+lq7pHgCnsB4nRmMeTxSnZXHvzYJ2IHyEiw8zEF8=", | |
"owner": "nix-community", | |
"repo": "fenix", | |
"rev": "d6022ac563f2f48d8eeff89ca3589c8adc5235f6", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nix-community", | |
"repo": "fenix", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1710146030, | |
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", | |
"type": "github" | |
}, | |
"original": { | |
"id": "flake-utils", | |
"type": "indirect" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1722813957, | |
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=", | |
"owner": "nixos", | |
"repo": "nixpkgs", | |
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nixos", | |
"ref": "nixos-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs_2": { | |
"locked": { | |
"lastModified": 1722791413, | |
"narHash": "sha256-rCTrlCWvHzMCNcKxPE3Z/mMK2gDZ+BvvpEVyRM4tKmU=", | |
"path": "/nix/store/l0992b1shksi7k8w1x6wzi61zbs48vck-source", | |
"rev": "8b5b6723aca5a51edf075936439d9cd3947b7b2c", | |
"type": "path" | |
}, | |
"original": { | |
"id": "nixpkgs", | |
"type": "indirect" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"fenix": "fenix", | |
"flake-utils": "flake-utils", | |
"nixpkgs": "nixpkgs_2" | |
} | |
}, | |
"rust-analyzer-src": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1723042912, | |
"narHash": "sha256-Ff4nCgmlSWVOMvRVVf6gTYgmZjGw9EjIFHG0aUFg+D8=", | |
"owner": "rust-lang", | |
"repo": "rust-analyzer", | |
"rev": "935883fd826c46e7e7e6de19cf24377c21f1b2ba", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "rust-lang", | |
"ref": "nightly", | |
"repo": "rust-analyzer", | |
"type": "github" | |
} | |
}, | |
"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", | |
"version": 7 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Multi-platform development shell with Rust nightly using fenix"; | |
inputs = { | |
nixpkgs.url = "nixpkgs"; | |
fenix = { | |
url = "github:nix-community/fenix"; | |
}; | |
flake-utils.url = "flake-utils"; | |
}; | |
outputs = { self, fenix, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let | |
pkgs = import nixpkgs { | |
inherit system; | |
overlays = [ fenix.overlays.default ]; | |
}; | |
in { | |
devShell = pkgs.mkShell { | |
buildInputs = [ | |
(fenix.packages.${system}.complete.withComponents [ | |
"cargo" | |
"clippy" | |
"rust-src" | |
"rustc" | |
"rustfmt" | |
]) | |
pkgs.rust-analyzer-nightly | |
]; | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment