From 823839e4cdaad859558b16caba5d76fbaf442f56 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 5 Aug 2024 17:03:13 -0400 Subject: [PATCH] pkgs: add cpm --- pkgs/cpm/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/cpm/default.nix diff --git a/pkgs/cpm/default.nix b/pkgs/cpm/default.nix new file mode 100644 index 0000000..23c89a3 --- /dev/null +++ b/pkgs/cpm/default.nix @@ -0,0 +1,29 @@ +{ + pkgs, + rustPlatform, + fetchFromGitHub, + lib, + ... +}: +rustPlatform.buildRustPackage { + name = "cpm"; + src = fetchFromGitHub { + owner = "2547techno"; + repo = "cpm"; + rev = "bc7a70a606ea83300aed8d100df2985de785aa83"; + sha256 = "sha256-uk2ltAPx8HxmVUhIIzAcQ6s4cTmsFmPOq0h/kSHMUzw="; + }; + + nativeBuildInputs = [pkgs.pkg-config]; + buildInputs = [pkgs.openssl]; + + cargoSha256 = "sha256-j3FtsrxAvPX2UhMjtLXyWsmLEEn/ZQ6R9nH6PSG844c="; + + meta = with lib; { + description = "Chatterino Plugin Manager "; + mainProgram = "cpm"; + homepage = "https://github.com/2547techno/cpm"; + license = licenses.mit; + maintainers = with maintainers; [notohh]; + }; +}