Merge pull request #298998 from imincik/devenv-remove-cargo-lock
devenv: use cargoHash instead of cargoLock file
This commit is contained in:
commit
837e6d8883
pkgs/by-name/de/devenv
2126
pkgs/by-name/de/devenv/Cargo.lock
generated
2126
pkgs/by-name/de/devenv/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,18 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, openssl
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, rustPlatform
|
||||
, testers
|
||||
|
||||
, cachix
|
||||
, darwin
|
||||
, libgit2
|
||||
, makeWrapper
|
||||
, nix
|
||||
, openssl
|
||||
, pkg-config
|
||||
, rustPlatform
|
||||
, cachix
|
||||
, fetchFromGitHub
|
||||
|
||||
, devenv # required to run version test
|
||||
}:
|
||||
|
||||
let
|
||||
@ -37,9 +41,7 @@ in rustPlatform.buildRustPackage {
|
||||
hash = "sha256-JCxjmWr2+75KMPOoVybNZhy9zhhrg9BAKA8D+J6MNBc=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
cargoHash = "sha256-FGB8p9ClGokYDrV0b47PnjeSlOv7p+IgThNajve3yms=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper pkg-config ];
|
||||
|
||||
@ -51,6 +53,13 @@ in rustPlatform.buildRustPackage {
|
||||
wrapProgram $out/bin/devenv --set DEVENV_NIX ${devenv_nix} --prefix PATH ":" "$out/bin:${cachix}/bin"
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = devenv;
|
||||
command = "export XDG_DATA_HOME=$PWD; devenv version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/cachix/devenv/releases/tag/v${version}";
|
||||
description = "Fast, Declarative, Reproducible, and Composable Developer Environments";
|
||||
|
Loading…
Reference in New Issue
Block a user