parent
5dbd4b2b27
commit
3bc5196252
@ -1,30 +1,19 @@ |
||||
{lib, stdenv, fetchhg}: |
||||
let |
||||
s = |
||||
rec { |
||||
baseName = "slmenu"; |
||||
version = "hg-${date}"; |
||||
date = "2012-02-01"; |
||||
name = "${baseName}-${version}"; |
||||
|
||||
stdenv.mkDerivation { |
||||
pname = "slmenu"; |
||||
version = "hg-2012-02-01"; |
||||
|
||||
src = fetchhg { |
||||
url = "https://bitbucket.org/rafaelgg/slmenu/"; |
||||
rev = "7e74fa5db73e8b018da48d50dbbaf11cb5c62d13"; |
||||
sha256 = "0zb7mm8344d3xmvrl62psazcabfk75pp083jqkmywdsrikgjagv6"; |
||||
}; |
||||
buildInputs = [ |
||||
]; |
||||
in |
||||
stdenv.mkDerivation { |
||||
inherit (s) name version; |
||||
inherit buildInputs; |
||||
src = fetchhg { |
||||
inherit (s) url sha256; |
||||
}; |
||||
makeFlags = [ "PREFIX=$(out)" ]; |
||||
meta = { |
||||
inherit (s) version; |
||||
meta = with lib; { |
||||
description = "A console dmenu-like tool"; |
||||
license = lib.licenses.mit; |
||||
maintainers = [lib.maintainers.raskin]; |
||||
platforms = lib.platforms.linux; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ raskin ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
||||
|
@ -1,50 +1,46 @@ |
||||
{ lib, stdenv, fetchurl, jre, makeWrapper }: |
||||
|
||||
let |
||||
stdenv.mkDerivation rec { |
||||
pname = "bfg-repo-cleaner"; |
||||
version = "1.13.0"; |
||||
jarName = "bfg-${version}.jar"; |
||||
mavenUrl = "mirror://maven/com/madgag/bfg/${version}/${jarName}"; |
||||
in |
||||
stdenv.mkDerivation { |
||||
inherit version jarName; |
||||
|
||||
name = "bfg-repo-cleaner-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = mavenUrl; |
||||
sha256 = "1kn84rsvms1v5l1j2xgrk7dc7mnsmxkc6sqd94mnim22vnwvl8mz"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ makeWrapper ]; |
||||
buildInputs = [ jre ]; |
||||
|
||||
dontUnpack = true; |
||||
jarName = "bfg-${version}.jar"; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/share/java |
||||
mkdir -p $out/bin |
||||
cp $src $out/share/java/$jarName |
||||
makeWrapper "${jre}/bin/java" $out/bin/bfg --add-flags "-cp $out/share/java/$jarName com.madgag.git.bfg.cli.Main" |
||||
src = fetchurl { |
||||
url = "mirror://maven/com/madgag/bfg/${version}/${jarName}"; |
||||
sha256 = "1kn84rsvms1v5l1j2xgrk7dc7mnsmxkc6sqd94mnim22vnwvl8mz"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ makeWrapper ]; |
||||
buildInputs = [ jre ]; |
||||
|
||||
dontUnpack = true; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/share/java |
||||
mkdir -p $out/bin |
||||
cp $src $out/share/java/$jarName |
||||
makeWrapper "${jre}/bin/java" $out/bin/bfg --add-flags "-cp $out/share/java/$jarName com.madgag.git.bfg.cli.Main" |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://rtyley.github.io/bfg-repo-cleaner/"; |
||||
# Descriptions taken with minor modification from the homepage of bfg-repo-cleaner |
||||
description = "Removes large or troublesome blobs in a git repository like git-filter-branch does, but faster"; |
||||
longDescription = '' |
||||
The BFG is a simpler, faster alternative to git-filter-branch for |
||||
cleansing bad data out of your Git repository history, in particular removing |
||||
crazy big files and removing passwords, credentials, and other private data. |
||||
|
||||
The git-filter-branch command is enormously powerful and can do things |
||||
that the BFG can't - but the BFG is much better for the tasks above, because |
||||
it's faster (10-720x), simpler (dedicated to just removing things), and |
||||
beautiful (can use Scala instead of bash to script customizations). |
||||
''; |
||||
license = licenses.gpl3; |
||||
maintainers = [ maintainers.changlinli ]; |
||||
platforms = platforms.unix; |
||||
downloadPage = "https://mvnrepository.com/artifact/com.madgag/bfg/${version}"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://rtyley.github.io/bfg-repo-cleaner/"; |
||||
# Descriptions taken with minor modification from the homepage of bfg-repo-cleaner |
||||
description = "Removes large or troublesome blobs in a git repository like git-filter-branch does, but faster"; |
||||
longDescription = '' |
||||
The BFG is a simpler, faster alternative to git-filter-branch for |
||||
cleansing bad data out of your Git repository history, in particular removing |
||||
crazy big files and removing passwords, credentials, and other private data. |
||||
|
||||
The git-filter-branch command is enormously powerful and can do things |
||||
that the BFG can't - but the BFG is much better for the tasks above, because |
||||
it's faster (10-720x), simpler (dedicated to just removing things), and |
||||
beautiful (can use Scala instead of bash to script customizations). |
||||
''; |
||||
license = licenses.gpl3; |
||||
maintainers = [ maintainers.changlinli ]; |
||||
platforms = platforms.unix; |
||||
downloadPage = "https://mvnrepository.com/artifact/com.madgag/bfg/${version}"; |
||||
}; |
||||
|
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue