about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/safefile/default.nix
blob: daa499061c5ba0671e3d5b14bd4355562571e01b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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;
  };
}