nur-packages

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

default.nix (801B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   buildGoModule,
      6   lz4,
      7 }:
      8 
      9 buildGoModule rec {
     10   pname = "elevation_server";
     11   version = "1.2.0";
     12 
     13   src = fetchFromGitHub {
     14     owner = "sikmir";
     15     repo = "elevation_server";
     16     rev = "d8964ed01e81dea4bcd20cf6f7e092da4b2d5547";
     17     hash = "sha256-nckgsaXtLd1D3gYqdAMF5VRRM4zkw4G6R0P//G9lqDM=";
     18   };
     19 
     20   vendorHash = "sha256-j43mafIXC1C4RvVIoqTV44kWSJgv1WDRphX3/G29Uxk=";
     21 
     22   subPackages = [
     23     "cmd/elevation_server"
     24     "cmd/make_data"
     25   ];
     26 
     27   buildInputs = [ lz4 ];
     28 
     29   meta = {
     30     description = "The server providing elevation data";
     31     homepage = "https://github.com/wladich/elevation_server";
     32     license = lib.licenses.free;
     33     maintainers = [ lib.maintainers.sikmir ];
     34     platforms = lib.platforms.unix;
     35     mainProgram = "elevation_server";
     36   };
     37 }