nur-packages

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

bin.nix (950B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   _7zz,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "podman-desktop";
     10   version = "1.15.0";
     11 
     12   src = fetchfromgh {
     13     owner = "containers";
     14     repo = "podman-desktop";
     15     tag = "v${finalAttrs.version}";
     16     hash = "sha256-TS2232oa7lnDh4E3F3Z3y2IGX2Q/SRV/tWIlvgpBkEU=";
     17     name = "podman-desktop-${finalAttrs.version}-x64.dmg";
     18   };
     19 
     20   sourceRoot = ".";
     21 
     22   nativeBuildInputs = [ _7zz ];
     23   unpackCmd = "7zz x $curSrc";
     24 
     25   installPhase = ''
     26     runHook preInstall
     27     mkdir -p $out/Applications
     28     cp -R *.app $out/Applications
     29     runHook postInstall
     30   '';
     31 
     32   meta = {
     33     description = "A graphical tool for developing on containers and Kubernetes";
     34     homepage = "https://podman-desktop.io/";
     35     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
     36     license = lib.licenses.asl20;
     37     platforms = [ "x86_64-darwin" ];
     38     maintainers = [ lib.maintainers.sikmir ];
     39     skip.ci = true;
     40   };
     41 })