chore(deps): update nix flake deps

This commit is contained in:
Yusuf Bera Ertan 2021-05-04 11:57:14 +03:00
parent 3c16966721
commit 57bfe95939
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 65 additions and 84 deletions

View File

@ -32,21 +32,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakeUtils": { "flakeUtils": {
"locked": { "locked": {
"lastModified": 1619345332, "lastModified": 1619345332,
@ -63,11 +48,7 @@
} }
}, },
"naersk": { "naersk": {
"inputs": { "flake": false,
"nixpkgs": [
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1619312121, "lastModified": 1619312121,
"narHash": "sha256-Zx1rTlonsp54lVlnIg38HV3bYx6GdIoKS1SgDnV+YBY=", "narHash": "sha256-Zx1rTlonsp54lVlnIg38HV3bYx6GdIoKS1SgDnV+YBY=",
@ -92,14 +73,15 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"preCommitHooks": "preCommitHooks",
"rustOverlay": "rustOverlay" "rustOverlay": "rustOverlay"
}, },
"locked": { "locked": {
"lastModified": 1619654768, "lastModified": 1620118463,
"narHash": "sha256-nCfewLmFRf30VH4FVXN8AG/HAtCf5IJCJ0zQ76ReaeU=", "narHash": "sha256-Ab15HNEtPz/4FQteuGNT7dUblHdnyNjsw3jB4a/eOPM=",
"owner": "yusdacra", "owner": "yusdacra",
"repo": "nix-cargo-integration", "repo": "nix-cargo-integration",
"rev": "05fe69723740467e3747dc94e76b70747d9dac58", "rev": "67a96ad47289116fbd2418119795c37519900e4e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +92,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1619631044, "lastModified": 1620087579,
"narHash": "sha256-2sFBhkcvdg51GxJvoHoiXu6ipRobOMjjcDpWG7zf+lU=", "narHash": "sha256-wjlA0Le2DvSczmnVE6n//5nWpAoudUV+DFnNNLN67wY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f93ecc4f6bc60414d8b73dbdf615ceb6a2c604df", "rev": "aebebb5752952d5543eebdf012c21d0dc6859217",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -124,6 +106,22 @@
"type": "github" "type": "github"
} }
}, },
"preCommitHooks": {
"flake": false,
"locked": {
"lastModified": 1619976063,
"narHash": "sha256-2tjVP95+qR1UzL8/UeV/xRJu7S2fRB7rf7enZedbrik=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "09fb9e425111878b58223852e87ed85e8a189e0d",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixCargoIntegration": "nixCargoIntegration", "nixCargoIntegration": "nixCargoIntegration",
@ -131,18 +129,13 @@
} }
}, },
"rustOverlay": { "rustOverlay": {
"inputs": { "flake": false,
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1619576778, "lastModified": 1620095001,
"narHash": "sha256-cPSxQ5m4nNe4L7y8m89JW/C5ZWxV+tC+/MVZ+j2OUdI=", "narHash": "sha256-U9krnAybhFQlwbFTjxRPQ/1DRXOu/3dmq2GOsihRMUo=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "186c39b462878f5590fa2208f377c9eabd611143", "rev": "916d7e608dd171123e1e2774e083813ff9abe831",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -18,10 +18,10 @@
build = common: prev: { build = common: prev: {
runTests = !prev.release && prev.runTests; runTests = !prev.release && prev.runTests;
}; };
common = prev: crateOverrides = common: prev:
let let
pkgs = prev.pkgs; pkgs = common.pkgs;
lib = pkgs.lib; lib = common.lib;
gitLfsCheckFile = ./assets/voxygen/background/bg_main.png; gitLfsCheckFile = ./assets/voxygen/background/bg_main.png;
utils = import ./nix/utils.nix { inherit pkgs; }; utils = import ./nix/utils.nix { inherit pkgs; };
@ -55,55 +55,43 @@
mkdir $out mkdir $out
ln -sf ${./assets} $out/assets ln -sf ${./assets} $out/assets
''; '';
velorenOverride = common: oldAttr:
if common.cargoPkg.name == "veloren-voxygen"
then
{
VELOREN_USERDATA_STRATEGY = "system";
postInstall = ''
if [ -f $out/bin/veloren-voxygen ]; then
wrapProgram $out/bin/veloren-voxygen \
--set VELOREN_ASSETS ${veloren-assets} \
--set LD_LIBRARY_PATH ${lib.makeLibraryPath common.runtimeLibs}
fi
'';
patches = [
(import ./nix/nullOggPatch.nix { nullOgg = ./assets/voxygen/audio/null.ogg; inherit pkgs; })
];
}
else if common.cargoPkg.name == "veloren-server-cli"
then
{
VELOREN_USERDATA_STRATEGY = "system";
postInstall = ''
if [ -f $out/bin/veloren-server-cli ]; then
wrapProgram $out/bin/veloren-server-cli --set VELOREN_ASSETS ${veloren-assets}
fi
'';
}
else { };
in in
{ {
crateOverrides = prev.crateOverrides // { # veloren-world = oldAttrs: {
veloren-world = oldAttrs: { # crateBin = lib.filter (bin: bin.name != "chunk_compression_benchmarks") oldAttrs.crateBin;
crateBin = lib.filter (bin: bin.name != "chunk_compression_benchmarks") oldAttrs.crateBin; # };
}; veloren-client = oldAttrs: {
veloren-client = oldAttrs: { crateBin = lib.filter (bin: bin.name != "bot") oldAttrs.crateBin;
crateBin = lib.filter (bin: bin.name != "bot") oldAttrs.crateBin;
};
veloren-common = oldAttrs: {
# Disable `git-lfs` check here since we check it ourselves
# We have to include the command output here, otherwise Nix won't run it
DISABLE_GIT_LFS_CHECK = utils.isGitLfsSetup gitLfsCheckFile;
# Declare env values here so that `common/build.rs` sees them
NIX_GIT_HASH = prettyRev;
NIX_GIT_TAG = tag;
crateBin = lib.filter (bin: bin.name != "csv_export" && bin.name != "csv_import") oldAttrs.crateBin;
};
}; };
overrides = prev.overrides // { veloren-common = oldAttrs: {
mainBuild = velorenOverride; # Disable `git-lfs` check here since we check it ourselves
# We have to include the command output here, otherwise Nix won't run it
DISABLE_GIT_LFS_CHECK = utils.isGitLfsSetup gitLfsCheckFile;
# Declare env values here so that `common/build.rs` sees them
NIX_GIT_HASH = prettyRev;
NIX_GIT_TAG = tag;
crateBin = lib.filter (bin: bin.name != "csv_export" && bin.name != "csv_import") oldAttrs.crateBin;
};
veloren-voxygen = oldAttrs: {
VELOREN_USERDATA_STRATEGY = "system";
postInstall = ''
if [ -f $out/bin/veloren-voxygen ]; then
wrapProgram $out/bin/veloren-voxygen \
--set VELOREN_ASSETS ${veloren-assets} \
--set LD_LIBRARY_PATH ${lib.makeLibraryPath common.runtimeLibs}
fi
'';
patches = [
(import ./nix/nullOggPatch.nix { nullOgg = ./assets/voxygen/audio/null.ogg; inherit pkgs; })
];
};
veloren-server-cli = oldAttrs: {
VELOREN_USERDATA_STRATEGY = "system";
postInstall = ''
if [ -f $out/bin/veloren-server-cli ]; then
wrapProgram $out/bin/veloren-server-cli --set VELOREN_ASSETS ${veloren-assets}
fi
'';
}; };
}; };
}; };