1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/os-specific/darwin/security-tool/default.nix
2014-09-30 01:14:14 -04:00

30 lines
828 B
Nix

{ stdenv, fetchurl, osx_private_sdk }:
stdenv.mkDerivation rec {
version = "55115";
name = "SecurityTool-${version}";
src = fetchurl {
url = "http://opensource.apple.com/tarballs/SecurityTool/SecurityTool-${version}.tar.gz";
sha256 = "0apcz4vy2z5645jhrs60wj3w27mncjjqv42h5lln36g6qs2n9113";
};
configurePhase = "";
# Someday we shall purge this impurity!
buildPhase = ''
/usr/bin/xcodebuild SDKROOT=${osx_private_sdk}/Developer/SDKs/PrivateMacOSX10.9.sdk/
'';
installPhase = ''
mkdir -p $out/bin/
cp build/Release/security $out/bin
'';
meta = with stdenv.lib; {
description = "Command line interface to Mac OS X keychains and Security framework";
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.darwin;
license = licenses.apsl20;
};
}