mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
devenv: init at 1.0.1
This commit is contained in:
parent
d03ae62edd
commit
23af4313d2
2126
pkgs/by-name/de/devenv/Cargo.lock
generated
Normal file
2126
pkgs/by-name/de/devenv/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
41
pkgs/by-name/de/devenv/package.nix
Normal file
41
pkgs/by-name/de/devenv/package.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ stdenv, lib, openssl, darwin, libgit2, makeWrapper, nix, pkg-config, rustPlatform, cachix, fetchFromGitHub }:
|
||||||
|
|
||||||
|
let
|
||||||
|
devenv_nix = nix.overrideAttrs (old: {
|
||||||
|
version = "2.21-devenv";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "domenkozar";
|
||||||
|
repo = "nix";
|
||||||
|
rev = "c5bbf14ecbd692eeabf4184cc8d50f79c2446549";
|
||||||
|
hash = "sha256-zvCqeUO2GLOm7jnU23G4EzTZR7eylcJN+HJ5svjmubI=";
|
||||||
|
};
|
||||||
|
buildInputs = old.buildInputs ++ [ libgit2 ];
|
||||||
|
doCheck = false;
|
||||||
|
doInstallCheck = false;
|
||||||
|
});
|
||||||
|
version = "1.0.1";
|
||||||
|
in rustPlatform.buildRustPackage {
|
||||||
|
pname = "devenv";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cachix";
|
||||||
|
repo = "devenv";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-9LnGe0KWqXj18IV+A1panzXQuTamrH/QcasaqnuqiE0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/devenv --set DEVENV_NIX ${devenv_nix} --prefix PATH ":" "$out/bin:${cachix}/bin"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user