1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/development/libraries/safefile/default.nix
Jan Tojnar 59a94b57f0
update.nix: Run update scripts in parallel
To make updating large attribute sets faster, the update scripts
are now run in parallel.

Please note the following changes in semantics:

- The string passed to updateScript needs to be a path to an executable file.
- The updateScript can also be a list: the tail elements will then be passed
  to the head as command line arguments.
2018-12-01 19:17:13 +01:00

32 lines
868 B
Nix

{ stdenv, fetchurl, path }:
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 = ''
#!${stdenv.shell}
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;
};
}