From 131bb6285f85bd6dac13217f08a1f4d7510da78a Mon Sep 17 00:00:00 2001 From: Louis Thevenet Date: Sun, 29 Dec 2024 22:25:34 +0100 Subject: [PATCH] utpm: init at 0-unstable-2024-12-17 (#353341) (cherry picked from commit 3c9415e38ea1f669f38d43238d66ce48e2aaec76) --- pkgs/by-name/ut/utpm/package.nix | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/ut/utpm/package.nix diff --git a/pkgs/by-name/ut/utpm/package.nix b/pkgs/by-name/ut/utpm/package.nix new file mode 100644 index 0000000000000..b474203e5435d --- /dev/null +++ b/pkgs/by-name/ut/utpm/package.nix @@ -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 ]; + }; +}