Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-24.11] utpm: init at 0-unstable-2024-12-17 #369238

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions pkgs/by-name/ut/utpm/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "utpm";
version = "0-unstable-2024-12-17";

useFetchCargoVendor = true;
cargoHash = "sha256-fqGxor2PgsQemnPNoZkgNUNc7yRg2eqHTLzJAVpt6+8=";

src = fetchFromGitHub {
owner = "Thumuss";
repo = pname;
rev = "6c2cabc8e7e696ea129f55aa7732a6be63bc2319";
hash = "sha256-uuET0BG2kBFEEWSSZ35h6+tnqTTjEHOP50GR3IkL+CE=";
};

env.OPENSSL_NO_VENDOR = 1;

buildInputs = [
openssl
];
nativeBuildInputs = [
pkg-config
];

doCheck = false; # no tests

meta = {
description = "Package manager for typst";
longDescription = ''
UTPM is a package manager for local and remote packages. Create quickly
new projects and templates from a singular tool, and then publish it directly
to Typst!
'';
homepage = "https://github.com/Thumuss/utpm";
license = lib.licenses.mit;
mainProgram = "utpm";
maintainers = with lib.maintainers; [ louis-thevenet ];
};
}
Loading