13 , devenv # required to run version test
17 devenv_nix = nixVersions.nix_2_24.overrideAttrs (old: {
18 version = "2.24-devenv";
19 src = fetchFromGitHub {
22 rev = "f6c5ae4c1b2e411e6b1e6a8181cc84363d6a7546";
23 hash = "sha256-X8ES7I1cfNhR9oKp06F6ir4Np70WGZU5sfCOuNBEwMg=";
26 doInstallCheck = false;
30 in rustPlatform.buildRustPackage {
34 src = fetchFromGitHub {
38 hash = "sha256-FhlknassIb3rKEucqnfFAzgny1ANmenJcTyRaXYwbA0=";
41 cargoHash = "sha256-dJ8A2kVXkpJcRvMLE/IawFUZNJqok/IRixTRGtLsE3w=";
43 buildAndTestSubdir = "devenv";
45 # Force sqlx to use the prepared queries
47 # A local database to use for preparing queries
48 DATABASE_URL = "sqlite:nix-eval-cache.db";
51 cargo sqlx database setup --source devenv-eval-cache/migrations
52 cargo sqlx prepare --workspace
55 nativeBuildInputs = [ makeWrapper pkg-config sqlx-cli ];
57 buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
58 darwin.apple_sdk.frameworks.SystemConfiguration
62 wrapProgram $out/bin/devenv --set DEVENV_NIX ${devenv_nix} --prefix PATH ":" "$out/bin:${cachix}/bin"
66 version = testers.testVersion {
68 command = "export XDG_DATA_HOME=$PWD; devenv version";
73 changelog = "https://github.com/cachix/devenv/releases/tag/v${version}";
74 description = "Fast, Declarative, Reproducible, and Composable Developer Environments";
75 homepage = "https://github.com/cachix/devenv";
76 license = lib.licenses.asl20;
77 mainProgram = "devenv";
78 maintainers = with lib.maintainers; [ domenkozar ];