Skip to content

Commit

Permalink
feat(rust-crane): update crane version to 0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yusdacra committed Oct 4, 2024
1 parent 7455742 commit 03fa850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 141 deletions.
112 changes: 0 additions & 112 deletions modules/dream2nix/rust-crane/crane.nix

This file was deleted.

36 changes: 7 additions & 29 deletions modules/dream2nix/rust-crane/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,8 @@
;
};

crane = import ./crane.nix {
inherit lib;
inherit
(config.deps)
stdenv
cargo
craneSource
jq
zstd
remarshal
makeSetupHook
writeText
runCommand
darwin
;
crane = import config.deps.craneSource {
pkgs = config.deps.cranePkgs;
};

vendoring = import ./vendor.nix {
Expand Down Expand Up @@ -191,14 +178,14 @@ in {
rust-crane.depsDrv = {
inherit version;
name = pname + depsNameSuffix;
package-func.func = config.deps.crane.buildDepsOnly;
package-func.func = crane.buildDepsOnly;
package-func.args = l.mkMerge [
common
depsArgs
];
};

package-func.func = config.deps.crane.buildPackage;
package-func.func = crane.buildPackage;
package-func.args = l.mkMerge [common buildArgs];

public = {
Expand All @@ -216,39 +203,30 @@ in {
deps = {nixpkgs, ...}:
l.mkMerge [
(l.mapAttrs (_: l.mkDefault) {
inherit crane;
cargo = nixpkgs.cargo;
craneSource = config.deps.fetchFromGitHub {
owner = "ipetkov";
repo = "crane";
rev = "v0.15.0";
sha256 = "sha256-xpW3VFUG7yE6UE6Wl0dhqencuENSkV7qpnpe9I8VbPw=";
rev = "v0.19.0";
sha256 = "sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE=";
};
cranePkgs = nixpkgs.pkgs;
})
# maybe it would be better to put these under `options.rust-crane.deps` instead of this `deps`
# since it conflicts with a lot of stuff?
(l.mapAttrs (_: l.mkOverride 999) {
inherit
(nixpkgs)
stdenv
fetchurl
jq
zstd
remarshal
moreutils
python3Packages
makeSetupHook
runCommandLocal
runCommand
writeText
fetchFromGitHub
libiconv
mkShell
;
inherit
(nixpkgs.pkgsBuildBuild)
darwin
;
inherit
(nixpkgs.writers)
writePython3
Expand Down

0 comments on commit 03fa850

Please sign in to comment.