default.nix 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. { unstable }:
  2. let
  3. inherit (unstable) lib fetchFromGitHub buildDartApplication;
  4. in
  5. buildDartApplication rec {
  6. pname = "zapstore-cli";
  7. version = "0.2.4";
  8. src = fetchFromGitHub {
  9. owner = "zapstore";
  10. repo = pname;
  11. tag = version;
  12. hash = "sha256-mXxQHCBx1x72W2HlOVBmAkNhFF4b9KTHDR1mtQgvqx4=";
  13. };
  14. pubspecLock = lib.importJSON ./pubspec.lock.json;
  15. gitHashes = {
  16. apk_parser = "sha256-w6Tj0NaqMWjxtmuAIjSOid3Kp4ObSB4CpZZfTaStMRI=";
  17. dart_console = "sha256-dT976gMr5gxCX4RCRYaPyq9bj6kZ7Rj5lRBr0VnLCCA=";
  18. models = "sha256-p+pV30Kp85cHg/mRvA5FDi1dMDiFJDBvGMLZ/kHEbN0=";
  19. nip07_signer = "sha256-AmXCH8FG+3GYxEWYTIeT1qEMX07jhCUW4gmTTXwi9AA=";
  20. nip44 = "sha256-rzOouw/BPwfxRvy8c2kMnEz6MfIUWYTrnyVBcmGYCD4=";
  21. purplebase = "sha256-6e1mdAo763s+AXsAGclzJf3PAh6NMTzI8mqrvy5KvLo=";
  22. };
  23. dartEntryPoints = {
  24. "zapstore" = "lib/main.dart";
  25. };
  26. postInstall = ''
  27. mkdir -p "$out/bin"
  28. cp zapstore "$out/bin/"
  29. '';
  30. meta = with lib; {
  31. description = "The permissionless package manager";
  32. homepage = "https://zapstore.dev";
  33. maintainers = [ ];
  34. license = licenses.mit;
  35. };
  36. }