From b454dcd0e0f6ce98a97114e1b7d2da13abad644d Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 15 Apr 2017 10:53:38 +0200 Subject: [PATCH] safefile: init at 1.0.5 --- .../libraries/safefile/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/safefile/default.nix diff --git a/pkgs/development/libraries/safefile/default.nix b/pkgs/development/libraries/safefile/default.nix new file mode 100644 index 000000000000..50f4d74d15cb --- /dev/null +++ b/pkgs/development/libraries/safefile/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchurl}: +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 = '' + cd ${toString ./.} + ${toString } 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04a181d11767..a735c6a2e67e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9715,6 +9715,8 @@ with pkgs; sad = callPackage ../applications/science/logic/sad { }; + safefile = callPackage ../development/libraries/safefile {}; + sbc = callPackage ../development/libraries/sbc { }; schroedinger = callPackage ../development/libraries/schroedinger { };