pkgs: add cpm

This commit is contained in:
notohh 2024-08-05 17:03:13 -04:00
parent 09c332c11b
commit 823839e4cd
Signed by: notohh
GPG key ID: BD47506D475EE86D

29
pkgs/cpm/default.nix Normal file
View file

@ -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];
};
}