Merge pull request #297976 from drupol/devenv/add-meta-attributes

devenv: add `meta` attributes
This commit is contained in:
Domen Kožar 2024-03-22 15:38:00 +07:00 committed by GitHub
commit 284dd64382
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,15 @@
{ stdenv, lib, openssl, darwin, libgit2, makeWrapper, nix, pkg-config, rustPlatform, cachix, fetchFromGitHub }: { stdenv
, lib
, openssl
, darwin
, libgit2
, makeWrapper
, nix
, pkg-config
, rustPlatform
, cachix
, fetchFromGitHub
}:
let let
devenv_nix = nix.overrideAttrs (old: { devenv_nix = nix.overrideAttrs (old: {
@ -13,6 +24,7 @@ let
doCheck = false; doCheck = false;
doInstallCheck = false; doInstallCheck = false;
}); });
version = "1.0.1"; version = "1.0.1";
in rustPlatform.buildRustPackage { in rustPlatform.buildRustPackage {
pname = "devenv"; pname = "devenv";
@ -38,4 +50,13 @@ in rustPlatform.buildRustPackage {
postInstall = '' postInstall = ''
wrapProgram $out/bin/devenv --set DEVENV_NIX ${devenv_nix} --prefix PATH ":" "$out/bin:${cachix}/bin" wrapProgram $out/bin/devenv --set DEVENV_NIX ${devenv_nix} --prefix PATH ":" "$out/bin:${cachix}/bin"
''; '';
meta = {
changelog = "https://github.com/cachix/devenv/releases/tag/v${version}";
description = "Fast, Declarative, Reproducible, and Composable Developer Environments";
homepage = "https://github.com/cachix/devenv";
license = lib.licenses.asl20;
mainProgram = "devenv";
maintainers = with lib.maintainers; [ domenkozar drupol ];
};
} }