From 12eef53b67c28c3b448b2b1eb08b79509fb6cef4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 17 Jun 2015 14:51:52 +0200 Subject: Wrong file --- custom/run-opossum@bragi.nix | 66 -------------------------------------------- custom/run-opossum_bragi.nix | 5 ++-- 2 files changed, 3 insertions(+), 68 deletions(-) delete mode 100644 custom/run-opossum@bragi.nix diff --git a/custom/run-opossum@bragi.nix b/custom/run-opossum@bragi.nix deleted file mode 100644 index 34452ef7..00000000 --- a/custom/run-opossum@bragi.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ stdenv -, zsh -, findutils -, coreutils -, makeWrapper -, wombat -, opossum -}: - -let - version = "0.0.0"; -in stdenv.mkDerivation { - name = "run-opossum-${version}"; - buildInputs = [ makeWrapper ]; - src = builtins.toFile name '' - #!${zsh}/bin/zsh - - oversized() { - l=$(du -BG -s -t 75 $BEUTEL | wc -l) - [[ $l -ge 1 ]] - } - - echo "Started $(date)" > $LOGFILE - opossum &>> $LOGFILE - - wombat search "(not (seen or hidden)) and (not forced)" | \ - xargs -r -n 1 -d '\n' -- wombat force \ - &>> $LOGFILE - - find $BEUTEL -type f -iname '*.tgz.bak' -delete - - if oversized; then - wombat search "(seen or hidden) and forced" | \ - while (read file && oversized); do - wombat reset $file - find $BEUTEL -type f -iname '*.tgz.bak' -delete - done - - wombat search "seen or hidden" | \ - while (read file && oversized); do - wombat delete $file - size=$(du -BG $BEUTEL) - done - fi - - echo "Ended $(date)" >> $LOGFILE - ''; - phases = [ "buildPhase" - "installPhase" - ]; - buildPhase = '' - cp -prd --no-preserve=timestamps $src run-opossum - ''; - installPhase = '' - mkdir -p $out/bin - cp run-opossum.sh $out/bin - chmod +x $out/bin/run-opossum - wrapProgram $out/bin/run-opossum \ - --prefix PATH : ${wombat}/bin \ - --prefix PATH : ${opossum}/bin \ - --prefix PATH : ${findutils}/bin \ - --prefix PATH : ${coreutils}/bin \ - --set BEUTEL $HOME/.beutel \ - --set LOGFILE $HOME/.last_opossum.log - ''; -} diff --git a/custom/run-opossum_bragi.nix b/custom/run-opossum_bragi.nix index bc8e4bb0..34452ef7 100644 --- a/custom/run-opossum_bragi.nix +++ b/custom/run-opossum_bragi.nix @@ -7,9 +7,10 @@ , opossum }: -stdenv.mkDerivation { - name = "run-opossum-${version}"; +let version = "0.0.0"; +in stdenv.mkDerivation { + name = "run-opossum-${version}"; buildInputs = [ makeWrapper ]; src = builtins.toFile name '' #!${zsh}/bin/zsh -- cgit v1.2.3