Merge pull request #297976 from drupol/devenv/add-meta-attributes
devenv: add `meta` attributes
This commit is contained in:
commit
284dd64382
1 changed files with 22 additions and 1 deletions
|
@ -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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue