nixpkgs/pkgs/by-name/gi/git-fixup/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

43 lines
998 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, git, coreutils, gnused, gnugrep }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "git-fixup";
version = "1.6.1";
src = fetchFromGitHub {
owner = "keis";
repo = "git-fixup";
rev = "v${finalAttrs.version}";
hash = "sha256-Mue2xgYxJSEu0VoDmB7rnoSuzyT038xzETUO1fwptrs=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
makeFlags = [
"DESTDIR=${placeholder "out"}"
"PREFIX="
];
installFlags = [
"install"
"install-fish"
"install-zsh"
];
postInstall = ''
wrapProgram $out/bin/git-fixup \
--prefix PATH : "${lib.makeBinPath [ git coreutils gnused gnugrep ]}"
'';
meta = {
description = "Fighting the copy-paste element of your rebase workflow";
homepage = "https://github.com/keis/git-fixup";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ michaeladler ];
platforms = lib.platforms.all;
mainProgram = "git-fixup";
};
})