Skip to content

Commit

Permalink
bfg: init -> 1.12.15
Browse files Browse the repository at this point in the history
  • Loading branch information
leenaars committed May 1, 2017
1 parent 2c14055 commit b6ea570
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/applications/version-management/bfg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, fetchgit, sbt, jre, makeWrapper, bash }:

stdenv.mkDerivation rec {
pname = "bfg-repo-cleaner";
version = "1.12.15";
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "rtyley";
repo = "${pname}";
rev = "v${version}";
sha256 = "0wxr16d86zkf1kz1qyz215jansydn09fmnikyc0hw98d5hn2apla";
};

buildInputs = [ jre sbt makeWrapper bash ];

buildPhase = ''
sbt bfg/assembly
'';

installPhase = ''
mkdir -p $out/bin $out/share/bfg
cp bfg/target/bfg-${version}-unknown.jar $out/share/bfg/bfg-${version}.jar
makeWrapper "${jre}/bin/java" "$out"/bin/bfg --add-flags "-jar $out/share/bfg/bfg-${version}.jar"
'';

meta = with stdenv.lib; {
homepage = "https://rtyley.github.io/bfg-repo-cleaner";
description = "Fast removal of blobs in git repos like git-filter-branch";
license = licenses.gpl3Plus;
maintainers = [ maintainers.leenaars ];
platforms = platforms.all;
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ with pkgs;

bchunk = callPackage ../tools/cd-dvd/bchunk { };

bfg = callPackage ../applications/version-management/bfg { };

bfr = callPackage ../tools/misc/bfr { };

bibtool = callPackage ../tools/misc/bibtool { };
Expand Down

0 comments on commit b6ea570

Please sign in to comment.