nur-packages

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

default.nix (850B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   unzip,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "Amethyst";
     10   version = "0.20.0";
     11 
     12   src = fetchfromgh {
     13     owner = "ianyh";
     14     repo = "Amethyst";
     15     version = "v${finalAttrs.version}";
     16     name = "Amethyst.zip";
     17     hash = "sha256-GYorvoCDLOd/xYStIGkSBqF5QjVR3PHL30b/Hm+CnAk=";
     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 = "Automatic tiling window manager for macOS à la xmonad";
     33     homepage = "https://ianyh.com/amethyst/";
     34     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
     35     license = lib.licenses.mit;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     platforms = [ "x86_64-darwin" ];
     38     skip.ci = true;
     39   };
     40 })