git.iko.soy/typeable/nixpkgs
on master help sign in
Remove obsolete shebangfix script
commit71aef59300d57f42abe7661fe6982bb4a93224a3 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 7 Jan 2015, 15:28 (12 years ago) parent4e382bc
4 files changed+4−67
pkgs/tools/misc/mysql2pgsql/default.nix+4−8 pkgs/tools/misc/shebangfix/default.nix−22 pkgs/tools/misc/shebangfix/shebangfix.pl−35 pkgs/top-level/all-packages.nix−2
pkgs/tools/misc/mysql2pgsql/default.nix+4−8
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, perl, shebangfix }:
1+{ stdenv, fetchurl, perl }:
22
33# The homepage says this script is mature..
44stdenv.mkDerivation {
@@ -9,19 +9,15 @@ stdenv.mkDerivation {
99 sha256 = "0dpbxf3kdvpihz9cisx6wi3zzd0cnifaqvjxavrbwm4k4sz1qamp";
1010 };
1111
12− phases = "unpackPhase installPhase";
13−
14− buildInputs = [ perl shebangfix ];
12+ buildInputs = [ perl ];
1513
1614 installPhase = ''
17− mkdir -p $out/bin;
18− shebangfix mysql2psql
19− chmod +x mysql2psql
15+ mkdir -p $out/bin
2016 mv {,$out/bin/}mysql2psql
2117 '';
2218
2319 meta = {
24− description = "converts mysql dump files to psql loadable files ";
20+ description = "Convert MySQL dump files to PostgreSQL-loadable files";
2521 homepage = http://pgfoundry.org/projects/mysql2pgsql/;
2622 license = stdenv.lib.licenses.bsdOriginal;
2723 };
pkgs/tools/misc/shebangfix/default.nixdeleted−22
@@ -1,22 +0,0 @@
1−{ stdenv, perl }:
2−
3−stdenv.mkDerivation {
4− name = "shebangfix-0.0";
5−
6− buildInputs = [perl];
7−
8− file = ./shebangfix.pl;
9−
10− phases = "buildPhase";
11−
12− buildPhase = ''
13− mkdir -p $out/bin
14− s=$out/bin/shebangfix
15− cp $file $s
16− chmod +wx $s
17− ls -l $s
18− perl $s $s
19− '';
20−
21− meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
22−}
pkgs/tools/misc/shebangfix/shebangfix.pldeleted−35
@@ -1,35 +0,0 @@
1−#!/bin/perl
2−use warnings;
3−use strict;
4−
5−#usage PATH=< : separated path list> perl <this script> file1 file2
6−
7−print "TODO fix space trouble. This script won't work if your paths contain spaces";
8−
9−sub findInPath{
10− my $file = shift(@_);
11− foreach (split(/:/, $ENV{'PATH'})){
12− my $f = "$_/$file";
13− if (-x "$f"){
14− return $f;
15− }
16− }
17− print "unable to find $file in on of ".$ENV{'PATH'};
18− exit 1
19−}
20−
21−foreach (@ARGV)
22−{
23− my $file = $_;
24− open(FILE, $file);
25− my $content = do { local $/; <FILE> };
26−
27− close(FILE);
28−
29− (my $name = $content) =~ /^#![^ ]*\/([^ \n\r]*)/;
30− my $fullpath = ($1 eq 'sh') ? "/bin/sh" : findInPath($1);
31− $content =~ s/^#![^ \n\r]*/#!$fullpath/;
32− open(FILE, ">$file");
33− print FILE $content;
34− close($file);
35−}
pkgs/top-level/all-packages.nix−2
@@ -2413,8 +2413,6 @@ let
24132413
24142414 shotwell = callPackage ../applications/graphics/shotwell { };
24152415
2416− shebangfix = callPackage ../tools/misc/shebangfix { };
2417−
24182416 shellinabox = callPackage ../servers/shellinabox { };
24192417
24202418 siege = callPackage ../tools/networking/siege {};