mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
add git-squash
This commit is contained in:
parent
19b0fe2e8f
commit
d99ada42c2
3 changed files with 36 additions and 0 deletions
34
packages/git-squash.nix
Normal file
34
packages/git-squash.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, bash
|
||||
, git
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "git-squash";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sheerun";
|
||||
repo = "git-squash";
|
||||
rev = "master";
|
||||
sha256 = "sha256-yvufKIwjP7VcIzLi8mE228hN4jmaqk90c8oxJtkXEP8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bash git ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp git-squash $out/bin/git-squash
|
||||
chmod +x $out/bin/git-squash
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Git command for squashing commits";
|
||||
homepage = "https://github.com/sheerun/git-squash";
|
||||
license = licenses.mit; # Adjust if the actual license is different
|
||||
platforms = platforms.all;
|
||||
maintainers = [ ]; # You can add maintainers if needed
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue