nur-packages

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

default.nix (812B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromGitHub,
      6   pkg-config,
      7   openssl,
      8   darwin,
      9 }:
     10 
     11 rustPlatform.buildRustPackage rec {
     12   pname = "hecate";
     13   version = "0.87.0";
     14 
     15   src = fetchFromGitHub {
     16     owner = "Hecate";
     17     repo = "Hecate";
     18     tag = "v${version}";
     19     hash = "sha256-X+49Mnls5xK6ag1QcvEm0GvLPmvcRBwNn/1vnC9GJO8=";
     20   };
     21 
     22   cargoPatches = [ ./cargo-lock.patch ];
     23 
     24   cargoHash = "sha256-ktETBMhXszYmgVa86zNuG7SVqAC2wWGOSoCZ/+2UQAU=";
     25 
     26   nativeBuildInputs = [ pkg-config ];
     27 
     28   buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
     29 
     30   doCheck = false;
     31 
     32   meta = {
     33     description = "Fast Geospatial Feature Storage API";
     34     homepage = "https://github.com/Hecate/Hecate";
     35     license = lib.licenses.mit;
     36     maintainers = [ lib.maintainers.sikmir ];
     37   };
     38 }