Merge pull request #202569 from marsam/update-comma

comma: 1.3.0 -> 1.4.0
This commit is contained in:
Artturi 2022-11-24 19:15:13 +02:00 committed by GitHub
commit bdd6fb4db0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,31 +2,30 @@
, fetchFromGitHub , fetchFromGitHub
, fzy , fzy
, lib , lib
, makeWrapper , makeBinaryWrapper
, nix , nix-index-unwrapped
, nix-index
, rustPlatform , rustPlatform
, testers , testers
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "comma"; pname = "comma";
version = "1.3.0"; version = "1.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = "comma"; repo = "comma";
rev = "v${version}"; 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 = '' postInstall = ''
wrapProgram $out/bin/comma \ 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/, ln -s $out/bin/comma $out/bin/,
''; '';
@ -38,7 +37,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/nix-community/comma"; homepage = "https://github.com/nix-community/comma";
description = "Runs programs without installing them"; description = "Runs programs without installing them";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Enzime artturin ]; maintainers = with maintainers; [ Enzime artturin marsam ];
platforms = platforms.all;
}; };
} }