diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 22:03:34 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 23:08:05 +0200 |
commit | b3d9a07086cb81e53e20837c96a3153453b0a123 (patch) | |
tree | e6c496d73203465d2ec4265d3200bf32f56362b3 /pkgs/git-detach/default.nix | |
parent | 145a8be2b22a3a0459a46e70e8b5d8f4ecc701aa (diff) |
pkgs: Move all of my packages into pkgs/aszlig
This already has started in e0abe1dbbda54c1f048b5d38df05e1a3289216a6 with @Profpatsch putting his packages into its own namespace, so let's continue on that and move my crap into my own namespace as well. The only difference in my approach is that I'm now also using a new function called callPackageScope, which declutters pkgs/default.nix a bit and moves the individual callPackage invocations into aszlig/default.nix. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/git-detach/default.nix')
-rw-r--r-- | pkgs/git-detach/default.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/pkgs/git-detach/default.nix b/pkgs/git-detach/default.nix deleted file mode 100644 index fb20843e..00000000 --- a/pkgs/git-detach/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ writeScriptBin, stdenv, git, coreutils, patch }: - -writeScriptBin "git-detach" '' - #!${stdenv.shell} - - if [ $# -le 0 -o "$1" = "--help" -o "$1" = "-h" ]; then - echo "Usage: $0 COMMAND [ARGS...]" >&2 - echo >&2 - echo "Run COMMAND in a clean Git working directory" >&2 - echo "without untracked files and .git directory." >&2 - exit 1 - fi - - diffToHead="$("${git}/bin/git" diff HEAD)" - - if tmpdir="$("${coreutils}/bin/mktemp" -d git-detach.XXXXXXXXXX)"; then - trap "rm -rf '${"\${tmpdir//\\'/\\'\\\\\\'\\'}"}'" EXIT - "${git}/bin/git" archive --format=tar HEAD | ( - set -e - basedir="$tmpdir/$("${coreutils}/bin/basename" "$(pwd)")" - mkdir "$basedir" - cd "$basedir" - tar x - if [ -n "$diffToHead" ]; then - echo "$diffToHead" | "${patch}/bin/patch" -s -p1 - fi - exec "$@" - ) - exit $? - else - echo "Unable to create temporary directory!" >&2 - fi -'' |