mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
44 lines
964 B
Nix
44 lines
964 B
Nix
{ git
|
|
, lib
|
|
, libgit2
|
|
, makeWrapper
|
|
, rustPlatform
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
let
|
|
inherit
|
|
(lib)
|
|
licenses
|
|
maintainers
|
|
;
|
|
|
|
version = "0.2.1";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-instafix";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quodlibetor";
|
|
repo = "git-instafix";
|
|
rev = "v${version}";
|
|
hash = "sha256-rWHiaZji3GECsiMqvEGC/tF+K29ZLlY6+TCNxtixHQo=";
|
|
};
|
|
|
|
cargoHash = "sha256-t5vlr3YxjRPqMHwPqVjWul4RdSg0hiTWUQxcJmGKiTQ=";
|
|
|
|
buildInputs = [ libgit2 ];
|
|
nativeCheckInputs = [ git ];
|
|
|
|
meta = {
|
|
description = "Quickly fix up an old commit using your currently-staged changes";
|
|
mainProgram = "git-instafix";
|
|
homepage = "https://github.com/quodlibetor/git-instafix";
|
|
license = with licenses; [ mit asl20 ];
|
|
maintainers = with maintainers; [ mightyiam ];
|
|
changelog = "https://github.com/quodlibetor/git-instafix/releases/tag/v${version}";
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|