Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute to nixos formated the list #357848

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5167,13 +5167,20 @@
github = "deadbaed";
githubId = 8809909;
};

dearrude = {
name = "Ebrahim Nejati";
email = "[email protected]";
github = "DearRude";
githubId = 30749142;
keys = [ { fingerprint = "4E35 F2E5 2132 D654 E815 A672 DB2C BC24 2868 6000"; } ];
};
deathraymind = {
name = "Bowyn Rosch";
email = "[email protected]";
github = "deathraymind";
githubId = 116578035;
};
declan = {
name = "Declan Rixon";
email = "[email protected]";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/by-name/gi/git-smash/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
fetchFromGitHub,
rustPlatform,
installShellFiles,
makeWrapper,
fzf,
stdenv,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
pname = "git-smash";
version = "0.1.1";

src = fetchFromGitHub {
owner = "anthraxx";
repo = "git-smash";
rev = "refs/tags/v${version}";
hash = "sha256-NyNYEF5g0O9xNhq+CoDPhQXZ+ISiY4DsShpjk5nP0N8=";
};

cargoHash = "sha256-omITZMBWzYlHHim/IXNa1rtiwHqpgLJ5G9z15YvDRi0=";

nativeBuildInputs = [
installShellFiles
makeWrapper
];

postFixup = ''
wrapProgram "$out/bin/git-smash" --suffix PATH : "${lib.makeBinPath [ fzf ]}"
'';

postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd git-smash \
--bash <($out/bin/git-smash completions bash) \
--fish <($out/bin/git-smash completions fish) \
--zsh <($out/bin/git-smash completions zsh)
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Smash staged changes into previous commits to support your Git workflow, pull request and feature branch maintenance";
homepage = "https://github.com/anthraxx/git-smash";
changelog = "https://github.com/anthraxx/git-smash/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
mainProgram = "git-smash";
maintainers = with lib.maintainers; [ bcyran ];
};
}
Loading