Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
861 B

преди 5 години
  1. # -*- mode: snippet -*-
  2. # name: package github
  3. # key: pg
  4. # --
  5. { stdenv, fetchFromGitHub$1 }:
  6. stdenv.mkDerivation rec {
  7. name = "$2-\$\{version\}";
  8. version = "$3";
  9. src = fetchFromGitHub {
  10. owner = "$4";
  11. repo = "$2";
  12. rev = "${5:v\$\{version\}}";
  13. sha256 = "$6";
  14. };
  15. buildInputs = [ $1];
  16. meta = {
  17. description = "$7";
  18. homepage = https://${8:github.com/$4/$2};
  19. license = stdenv.lib.licenses.${9:$$
  20. (yas-choose-value '(
  21. "agpl3"
  22. "asl20"
  23. "bsd2"
  24. "bsd3"
  25. "gpl2"
  26. "gpl3"
  27. "lgpl3"
  28. "mit"
  29. ))};
  30. maintainers = [ stdenv.lib.maintainers.$10 ];
  31. platforms = stdenv.lib.platforms.${11:$$
  32. (yas-choose-value '(
  33. "gnu"
  34. "linux"
  35. "darwin"
  36. "freebsd"
  37. "openbsd"
  38. "netbsd"
  39. "cygwin"
  40. "illumos"
  41. "unix"
  42. "all"
  43. "none"
  44. "allBut"
  45. "mesaPlatforms"
  46. "x86"
  47. "i686"
  48. "arm"
  49. "mips"
  50. ))};
  51. };
  52. }