about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/sawja
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-09-03 21:59:29 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-09-03 21:59:29 +0200
commitebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a (patch)
tree008b6adaf34c2938e59d199f6e02fd32d96e1b42 /pkgs/development/ocaml-modules/sawja
parent624e98e78e011014ba204ed414314836f15a1415 (diff)
downloadnixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar.gz
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar.bz2
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar.lz
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar.xz
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.tar.zst
nixlib-ebbd54e9f0aa8d77ba0f72eac0b032dd4fd4f60a.zip
ocaml-javalib, ocaml-sawja: uses patchShebangs rather than ad-hoc patches
Diffstat (limited to 'pkgs/development/ocaml-modules/sawja')
-rw-r--r--pkgs/development/ocaml-modules/sawja/configure.sh.patch6
-rw-r--r--pkgs/development/ocaml-modules/sawja/default.nix2
2 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/sawja/configure.sh.patch b/pkgs/development/ocaml-modules/sawja/configure.sh.patch
index e01df32bbded..8165de242f57 100644
--- a/pkgs/development/ocaml-modules/sawja/configure.sh.patch
+++ b/pkgs/development/ocaml-modules/sawja/configure.sh.patch
@@ -1,11 +1,5 @@
 --- sawja-1.5-orig/configure.sh	2013-10-30 08:35:29.000000000 +0100
 +++ sawja-1.5/configure.sh	2014-07-05 18:50:26.833798254 +0200
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
-
- ###
- ### A configuration script for Sawja
 @@ -39,7 +39,7 @@
  DESTDIR=
  # The ocamlpath variable for the compiler to locate the locally-installed
diff --git a/pkgs/development/ocaml-modules/sawja/default.nix b/pkgs/development/ocaml-modules/sawja/default.nix
index bed87a50f81d..ef3ab9a46b93 100644
--- a/pkgs/development/ocaml-modules/sawja/default.nix
+++ b/pkgs/development/ocaml-modules/sawja/default.nix
@@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
 
   createFindlibDestdir = true;
 
+  preConfigure = "patchShebangs ./configure.sh";
+
   configureScript = "./configure.sh";
   dontAddPrefix = "true";