From c89a0d6c4f875fe4a3340b017b66057caec1ab6f Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sun, 26 Aug 2012 14:43:25 +0200 Subject: Add package: plowshare-git20120807 --- pkgs/tools/misc/plowshare/default.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/tools/misc/plowshare/default.nix (limited to 'pkgs/tools/misc/plowshare') diff --git a/pkgs/tools/misc/plowshare/default.nix b/pkgs/tools/misc/plowshare/default.nix new file mode 100644 index 000000000000..0e7d688670fc --- /dev/null +++ b/pkgs/tools/misc/plowshare/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, bash }: + +let + + v = "20120807"; + +in stdenv.mkDerivation { + + name = "plowshare-git${v}"; + + src = fetchurl { + url = "http://plowshare.googlecode.com/files/plowshare-snapshot-git${v}.tar.gz"; + sha256 = "0clryfssaa4rjvsy760p51ppq1275lwvhm9jh3g4mi973xv4n8si"; + }; + + phases = [ "unpackPhase" "installPhase" "postInstallPhase" ]; + + installPhase = ''make PREFIX="$out" install''; + + postInstallPhase = '' + find "$out" -name "*.sh" -exec \ + sed -i "s@#!/bin/bash@#!${bash}/bin/bash@" '{}' \; + ''; + + meta = { + description = '' + A command-line download/upload tool for popular file sharing websites + ''; + license = stdenv.lib.licenses.gpl3; + }; +} -- cgit 1.4.1