dadc7eb329
Whenever we create scripts that are installed to $out, we must use runtimeShell in order to get the shell that can be executed on the machine we create the package for. This is relevant for cross-compiling. The only use case for stdenv.shell are scripts that are executed as part of the build system. Usages in checkPhase are borderline however to decrease the likelyhood of people copying the wrong examples, I decided to use runtimeShell as well.
31 lines
882 B
Nix
31 lines
882 B
Nix
{ stdenv, fetchurl, path, runtimeShell }:
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "safefile";
|
|
version = "1.0.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://research.cs.wisc.edu/mist/${pname}/releases/${name}.tar.gz";
|
|
sha256 = "1y0gikds2nr8jk8smhrl617njk23ymmpxyjb2j1xbj0k82xspv78";
|
|
};
|
|
|
|
buildInputs = [];
|
|
|
|
passthru = {
|
|
updateScript = ''
|
|
#!${runtimeShell}
|
|
cd ${toString ./.}
|
|
${toString path}/pkgs/build-support/upstream-updater/update-walker.sh default.nix
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
inherit version;
|
|
description = "File open routines to safely open a file when in the presence of an attack";
|
|
license = stdenv.lib.licenses.asl20 ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
homepage = http://research.cs.wisc.edu/mist/safefile/;
|
|
updateWalker = true;
|
|
};
|
|
}
|