devenv: add meta attributes

This commit is contained in:
Pol Dellaiera 2024-03-22 09:03:10 +01:00
parent 463be7475e
commit 62279fba32
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

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 ];
};
} }