git.iko.soy/typeable/nixpkgs
on master help sign in
agda: use writeShellScriptbin instead of writeScriptBin

This adds the shell shebang to the wrapper script. Without this, emacs and in particular agda2-mode (but probably other applications as well) return a format error when trying to execute agda.

commit0266996a8db7cc41c7951fda993fe8eb7c386695 authorMoritz Kiefer <moritz.kiefer@purelyfunctional.org> dateThu 8 Nov 2018, 17:53 (8 years ago) parent6742bdc
1 file changed+2−2
pkgs/build-support/agda/default.nix+2−2
pkgs/build-support/agda/default.nix+2−2
@@ -3,7 +3,7 @@
33# Contact: stdenv.lib.maintainers.fuuzetsu
44
55{ stdenv, Agda, glibcLocales
6−, writeScriptBin
6+, writeShellScriptBin
77, extension ? (self: super: {})
88}:
99
@@ -77,7 +77,7 @@ let
7777 buildInputs = let
7878 # Makes a wrapper available to the user. Very useful in
7979 # nix-shell where all dependencies are -i'd.
80− agdaWrapper = writeScriptBin "agda" ''
80+ agdaWrapper = writeShellScriptBin "agda" ''
8181 ${self.agdaWithArgs} "$@"
8282 '';
8383 in [agdaWrapper] ++ self.buildDepends;