mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
comma: use nix from environment
This commit is contained in:
parent
ed2c0adb45
commit
1ef34b5ae8
|
@ -2,9 +2,8 @@
|
|||
, fetchFromGitHub
|
||||
, fzy
|
||||
, lib
|
||||
, makeWrapper
|
||||
, nix
|
||||
, nix-index
|
||||
, makeBinaryWrapper
|
||||
, nix-index-unwrapped
|
||||
, rustPlatform
|
||||
, testers
|
||||
}:
|
||||
|
@ -22,11 +21,11 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoHash = "sha256-/1b3GF0flhvejZ3C/yOzRGl50sWR4IxprwRoMUYEvm8=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/comma \
|
||||
--prefix PATH : ${lib.makeBinPath [ nix fzy nix-index ]}
|
||||
--prefix PATH : ${lib.makeBinPath [ fzy nix-index-unwrapped ]}
|
||||
ln -s $out/bin/comma $out/bin/,
|
||||
'';
|
||||
|
||||
|
@ -39,6 +38,5 @@ rustPlatform.buildRustPackage rec {
|
|||
description = "Runs programs without installing them";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Enzime artturin ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue