Unverified Commit bdd6fb4d authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #202569 from marsam/update-comma

comma: 1.3.0 -> 1.4.0
parents a01b299c 81830797
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -2,31 +2,30 @@
, fetchFromGitHub
, fzy
, lib
, makeWrapper
, nix
, nix-index
, makeBinaryWrapper
, nix-index-unwrapped
, rustPlatform
, testers
}:

rustPlatform.buildRustPackage rec {
  pname = "comma";
  version = "1.3.0";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "nix-community";
    repo = "comma";
    rev = "v${version}";
    sha256 = "sha256-rXAX14yB8v9BOG4ZsdGEedpZAnNqhQ4DtjQwzFX/TLY=";
    hash = "sha256-EPrXIDi0yO+AVriQgi3t91CLtmYtgmyEfWtFD+wH8As=";
  };

  cargoSha256 = "sha256-9PVbiWmaTDx4iob5g9tXC+FV5Jmy6Id9tQxm05fJLkM=";
  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/,
  '';

@@ -38,7 +37,6 @@ rustPlatform.buildRustPackage rec {
    homepage = "https://github.com/nix-community/comma";
    description = "Runs programs without installing them";
    license = licenses.mit;
    maintainers = with maintainers; [ Enzime artturin ];
    platforms = platforms.all;
    maintainers = with maintainers; [ Enzime artturin marsam ];
  };
}