nur-packages

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

default.nix (949B)


      1 {
      2   lib,
      3   stdenv,
      4   nimPackages,
      5   fetchFromGitHub,
      6   pkg-config,
      7   xorg,
      8 }:
      9 
     10 nimPackages.buildNimPackage rec {
     11   pname = "worm";
     12   version = "0.3.2";
     13   nimBinOnly = true;
     14 
     15   src = fetchFromGitHub {
     16     owner = "codic12";
     17     repo = "worm";
     18     rev = "v${version}";
     19     hash = "sha256-fm969whcYILMphR8Vr8oarx2iEJiIhzifU2wNYaU/Kg=";
     20   };
     21 
     22   nativeBuildInputs = [ pkg-config ];
     23 
     24   buildInputs =
     25     with nimPackages;
     26     [
     27       pixie
     28       regex
     29       unicodedb
     30       x11
     31     ]
     32     ++ (with xorg; [
     33       libX11
     34       libXft
     35       libXinerama
     36     ]);
     37 
     38   postInstall = ''
     39     install -Dm644 assets/worm.desktop -t $out/share/applications
     40   '';
     41 
     42   meta = {
     43     description = "A dynamic, tag-based window manager written in Nim";
     44     homepage = "https://github.com/codic12/worm";
     45     license = lib.licenses.mit;
     46     platforms = lib.platforms.linux;
     47     maintainers = [ lib.maintainers.sikmir ];
     48     skip.ci = stdenv.isDarwin;
     49     broken = true;
     50   };
     51 }