nur-packages

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

bin.nix (822B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   undmg,
      6   darktable,
      7 }:
      8 
      9 stdenv.mkDerivation (finalAttrs: {
     10   pname = "darktable-bin";
     11   version = "4.8.0";
     12 
     13   src = fetchfromgh {
     14     owner = "darktable-org";
     15     repo = "darktable";
     16     name = "darktable-${finalAttrs.version}-x86_64.dmg";
     17     hash = "sha256-ve1phvcq+JAfD6KGhtbQbmt2bYMcKavooBY7WlA6UOY=";
     18     version = "release-${finalAttrs.version}";
     19   };
     20 
     21   sourceRoot = ".";
     22 
     23   nativeBuildInputs = [ undmg ];
     24 
     25   installPhase = ''
     26     runHook preInstall
     27 
     28     mkdir -p $out/Applications
     29     cp -r *.app $out/Applications
     30 
     31     runHook postInstall
     32   '';
     33 
     34   meta =
     35     with lib;
     36     darktable.meta
     37     // {
     38       sourceProvenance = with sourceTypes; [ binaryNativeCode ];
     39       maintainers = [ maintainers.sikmir ];
     40       platforms = [ "x86_64-darwin" ];
     41       skip.ci = true;
     42     };
     43 })