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

utpm: init at 0-unstable-2024-12-17 #353341

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

louis-thevenet
Copy link
Contributor

UTPM is a typst package manager for local and remote packages. Create quickly new projects and templates from a singular tool, and then publish it directly to Typst!

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Member

@Bot-wxt1221 Bot-wxt1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

image

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 3, 2024
@louis-thevenet louis-thevenet added the backport release-24.11 Backport PR automatically label Dec 8, 2024
@FliegendeWurst
Copy link
Member

To fix the source 404 and more. You can remove the Cargo.lock.

diff --git a/pkgs/by-name/ut/utpm/package.nix b/pkgs/by-name/ut/utpm/package.nix
index 57f430da43bc..b474203e5435 100644
--- a/pkgs/by-name/ut/utpm/package.nix
+++ b/pkgs/by-name/ut/utpm/package.nix
@@ -7,20 +7,16 @@
 }:
 rustPlatform.buildRustPackage rec {
   pname = "utpm";
-  version = "dev-0363e5";
+  version = "0-unstable-2024-12-17";
 
-  cargoLock = {
-    lockFile = ./Cargo.lock;
-    outputHashes = {
-      "typst-project-0.1.0" = "sha256-Qys3F6Maq0HpC/50yyAZRpsOQ+ePzaz/TuHdfjtQRwY";
-    };
-  };
+  useFetchCargoVendor = true;
+  cargoHash = "sha256-fqGxor2PgsQemnPNoZkgNUNc7yRg2eqHTLzJAVpt6+8=";
 
   src = fetchFromGitHub {
     owner = "Thumuss";
     repo = pname;
-    rev = version;
-    hash = "sha256-fvdMhSbsknKHQ9GTlzB2keHYkBFV/FULcHAQnhTRoFo=";
+    rev = "6c2cabc8e7e696ea129f55aa7732a6be63bc2319";
+    hash = "sha256-uuET0BG2kBFEEWSSZ35h6+tnqTTjEHOP50GR3IkL+CE=";
   };
 
   env.OPENSSL_NO_VENDOR = 1;
@@ -32,8 +28,10 @@ rustPlatform.buildRustPackage rec {
     pkg-config
   ];
 
+  doCheck = false; # no tests
+
   meta = {
-    description = "A package manager for typst";
+    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

@louis-thevenet
Copy link
Contributor Author

You're right, old releases got completely wiped out. Thank you

@FliegendeWurst FliegendeWurst changed the title utpm: init at dev-0363e5 utpm: init at 0-unstable-2024-12-17 Dec 23, 2024
@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Dec 23, 2024
@FliegendeWurst FliegendeWurst merged commit 3c9415e into NixOS:master Dec 29, 2024
51 of 52 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 29, 2024

Successfully created backport PR for release-24.11:

nixpkgs-ci bot pushed a commit that referenced this pull request Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 2 This PR was reviewed and approved by two reputable people backport release-24.11 Backport PR automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants