home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

default.nix (667B)


      1 { stdenv, lib, buildGoModule, fetchFromGitHub }:
      2 
      3 buildGoModule rec {
      4   name = "prm-${version}";
      5   version = "3.4.5";
      6   rev = "v${version}";
      7 
      8   ldflags =
      9     let t = "github.com/ldez/prm/v3/meta";
     10     in
     11     [
     12       "-X ${t}.Version=${version}"
     13       "-X ${t}.BuildDate=unknown"
     14     ];
     15 
     16   src = fetchFromGitHub {
     17     inherit rev;
     18     owner = "ldez";
     19     repo = "prm";
     20     sha256 = "sha256-ZrzZ4aJ9uB7iFHLCDsTJp8POqOG2HhrIC2cYg31tYdg=";
     21   };
     22   vendorHash = "1k1n2ylxrbkdwli0nh56fv7q8c7yl0661ayvpgirlp19704za509";
     23 
     24   meta = {
     25     description = "Pull Request Manager for Maintainers";
     26     homepage = https://github.com/ldez/prm;
     27     license = lib.licenses.asl20;
     28   };
     29 }