summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-07 15:28:38 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-07 15:29:10 +0100
commit71aef59300d57f42abe7661fe6982bb4a93224a3 (patch)
tree1135e0f295713469d6b87936ef6bd16ba654c90f /pkgs/tools/misc
parent4e382bce7ed6ff0903c39210e4fc8a9e02407740 (diff)
downloadnixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar.gz
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar.bz2
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar.lz
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar.xz
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.tar.zst
nixpkgs-71aef59300d57f42abe7661fe6982bb4a93224a3.zip
Remove obsolete shebangfix script
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/mysql2pgsql/default.nix12
-rw-r--r--pkgs/tools/misc/shebangfix/default.nix22
-rw-r--r--pkgs/tools/misc/shebangfix/shebangfix.pl35
3 files changed, 4 insertions, 65 deletions
diff --git a/pkgs/tools/misc/mysql2pgsql/default.nix b/pkgs/tools/misc/mysql2pgsql/default.nix
index ce4f8728a80..234e16df74f 100644
--- a/pkgs/tools/misc/mysql2pgsql/default.nix
+++ b/pkgs/tools/misc/mysql2pgsql/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perl, shebangfix }:
+{ stdenv, fetchurl, perl }:
 
 # The homepage says this script is mature..
 stdenv.mkDerivation {
@@ -9,19 +9,15 @@ stdenv.mkDerivation {
     sha256 = "0dpbxf3kdvpihz9cisx6wi3zzd0cnifaqvjxavrbwm4k4sz1qamp";
   };
 
-  phases = "unpackPhase installPhase";
-
-  buildInputs = [ perl shebangfix ];
+  buildInputs = [ perl ];
 
   installPhase = ''
-    mkdir -p $out/bin;
-    shebangfix mysql2psql
-    chmod +x mysql2psql
+    mkdir -p $out/bin
     mv {,$out/bin/}mysql2psql
   '';
 
   meta = {
-    description = "converts mysql dump files to psql loadable files ";
+    description = "Convert MySQL dump files to PostgreSQL-loadable files";
     homepage = http://pgfoundry.org/projects/mysql2pgsql/;
     license = stdenv.lib.licenses.bsdOriginal;
   };
diff --git a/pkgs/tools/misc/shebangfix/default.nix b/pkgs/tools/misc/shebangfix/default.nix
deleted file mode 100644
index 68f20df0577..00000000000
--- a/pkgs/tools/misc/shebangfix/default.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ stdenv, perl }:
-
-stdenv.mkDerivation {
-  name = "shebangfix-0.0";
-
-  buildInputs = [perl];
-
-  file = ./shebangfix.pl;
-
-  phases = "buildPhase";
-
-  buildPhase = ''
-    mkdir -p $out/bin
-    s=$out/bin/shebangfix
-    cp $file $s
-    chmod +wx $s
-    ls -l $s
-    perl $s $s
-  '';
-
-  meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
-}
diff --git a/pkgs/tools/misc/shebangfix/shebangfix.pl b/pkgs/tools/misc/shebangfix/shebangfix.pl
deleted file mode 100644
index 53573f8d36d..00000000000
--- a/pkgs/tools/misc/shebangfix/shebangfix.pl
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/perl
-use warnings;
-use strict;
-
-#usage PATH=< : separated path list> perl <this script>  file1 file2
-
-print "TODO fix space trouble. This script won't work if your paths contain spaces";
-
-sub findInPath{
-  my $file = shift(@_);
-  foreach (split(/:/, $ENV{'PATH'})){
-    my $f =  "$_/$file";
-    if (-x "$f"){
-      return $f;
-    }
-  }
-  print "unable to find $file in on of ".$ENV{'PATH'};
-  exit 1
-}
-
-foreach (@ARGV)
-{
-  my $file = $_;
-  open(FILE, $file);
-  my $content = do { local $/; <FILE> };
-
-  close(FILE); 
-
-  (my $name = $content) =~ /^#![^ ]*\/([^ \n\r]*)/;
-  my $fullpath =  ($1 eq 'sh') ? "/bin/sh" : findInPath($1);
-  $content =~ s/^#![^ \n\r]*/#!$fullpath/;
-  open(FILE, ">$file");
-  print FILE $content;
-  close($file);
-}