Merge branch 'yusdacra/chore/nix' into 'master'

Nix chores

See merge request veloren/veloren!2127
This commit is contained in:
Samuel Keiffer 2021-04-15 01:25:02 +00:00
commit 9c59033976
3 changed files with 12 additions and 32 deletions

View File

@ -2,11 +2,11 @@
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1609246779,
"narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=",
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
},
"original": {
@ -17,11 +17,11 @@
},
"flakeUtils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"lastModified": 1618217525,
"narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544",
"type": "github"
},
"original": {
@ -53,11 +53,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1616259034,
"narHash": "sha256-WlMIiGIXJm7J+jemzd+ksoun6znWmabCZNz76szV158=",
"lastModified": 1618306168,
"narHash": "sha256-/IOtgzdEaiEqRVn6OhpekuYhRHfCm299Bqts5QqQVko=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4e0d3868c679da20108db402785f924daa1a7fb5",
"rev": "4c87cb87a2db6b9eb43541c1cf83f2a2f725fa25",
"type": "github"
},
"original": {
@ -83,11 +83,11 @@
]
},
"locked": {
"lastModified": 1616467144,
"narHash": "sha256-7iGzusiBdQcXGrnQGcLwRoEiKtH3bNGIpXu+TJTD6Gw=",
"lastModified": 1618366946,
"narHash": "sha256-5zevIklODemySoUY8xtIemD/WO7ftaXeltz9rraEVAc=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "cdaa20a3e7f97d5fad271464dac7e2725157c6e7",
"rev": "82b13c9048b345cf6345dd326478ad5ec059e6c6",
"type": "github"
},
"original": {

View File

@ -183,12 +183,6 @@ It is inadvised to update revisions without the use of `nix flake update` as it'
Modify the relevant `rev` field in `flake.lock` to what you need - you can use `nix-prefetch-git` to find an up-to-date revision. Leave the `narHash` entry as is and attempt a rebuild to find out what its value should be.
### Rust toolchain
If the `rust-toolchain` file is updated, you will need to update the `sha256` hash in the `nix/rustPkgs.nix` file.
Trying to build the derivation should give you the correct hash to put in.
## Formatting
Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files.

View File

@ -1,14 +0,0 @@
{ nixpkgsMoz, pkgs }:
let
mozPkgs = import "${nixpkgsMoz}/package-set.nix" {
inherit pkgs;
};
channel = mozPkgs.rustChannelOf {
rustToolchain = ../rust-toolchain;
sha256 = "sha256-9wp6afVeZqCOEgXxYQiryYeF07kW5IHh3fQaOKF2oRI=";
};
in
channel // {
rust = channel.rust.override { extensions = [ "rust-src" ]; };
}