nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (839B)


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