nur-packages

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

package.nix (864B)


      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   __structuredAttrs = true;
     13 
     14   src = fetchfromgh {
     15     owner = "MacPass";
     16     repo = "MacPass";
     17     tag = finalAttrs.version;
     18     hash = "sha256-LQ073JRbQsDB/nmx63Tllptfdo/8VqoobXPTSShzsXM=";
     19     name = "MacPass-${finalAttrs.version}.zip";
     20   };
     21 
     22   sourceRoot = ".";
     23 
     24   nativeBuildInputs = [ unzip ];
     25 
     26   installPhase = ''
     27     mkdir -p $out/Applications
     28     cp -r *.app $out/Applications
     29   '';
     30 
     31   preferLocalBuild = true;
     32 
     33   meta = {
     34     description = "A native OS X KeePass client";
     35     homepage = "https://macpassapp.org/";
     36     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
     37     license = lib.licenses.gpl3Plus;
     38     maintainers = [ lib.maintainers.sikmir ];
     39     platforms = [ "x86_64-darwin" ];
     40     skip.ci = true;
     41   };
     42 })