bin.nix (735B)
1 { lib, stdenv, fetchfromgh, unzip }: 2 3 stdenv.mkDerivation rec { 4 pname = "MacPass-bin"; 5 version = "0.8.1"; 6 7 src = fetchfromgh { 8 owner = "MacPass"; 9 repo = "MacPass"; 10 name = "MacPass-${version}.zip"; 11 hash = "sha256-LQ073JRbQsDB/nmx63Tllptfdo/8VqoobXPTSShzsXM="; 12 inherit version; 13 }; 14 15 sourceRoot = "."; 16 17 nativeBuildInputs = [ unzip ]; 18 19 installPhase = '' 20 mkdir -p $out/Applications 21 cp -r *.app $out/Applications 22 ''; 23 24 preferLocalBuild = true; 25 26 meta = with lib; { 27 description = "A native OS X KeePass client"; 28 homepage = "https://macpassapp.org/"; 29 license = licenses.gpl3Plus; 30 maintainers = [ maintainers.sikmir ]; 31 platforms = [ "x86_64-darwin" ]; 32 skip.ci = true; 33 }; 34 }