utpm: 0-unstable-2024-12-17 -> 0.2.0

+25 -8
+25 -8
pkgs/by-name/ut/utpm/package.nix
··· 4 4 rustPlatform, 5 5 openssl, 6 6 pkg-config, 7 + stdenv, 8 + buildPackages, 9 + installShellFiles, 7 10 }: 8 - rustPlatform.buildRustPackage { 11 + rustPlatform.buildRustPackage (finalAttrs: { 9 12 pname = "utpm"; 10 - version = "0-unstable-2024-12-17"; 11 - 12 - cargoHash = "sha256-fqGxor2PgsQemnPNoZkgNUNc7yRg2eqHTLzJAVpt6+8="; 13 + version = "0.2.0"; 13 14 14 15 src = fetchFromGitHub { 15 16 owner = "Thumuss"; 16 17 repo = "utpm"; 17 - rev = "6c2cabc8e7e696ea129f55aa7732a6be63bc2319"; 18 - hash = "sha256-uuET0BG2kBFEEWSSZ35h6+tnqTTjEHOP50GR3IkL+CE="; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-NlH+fPkTNqaQc2BrjerktnKS2L731K9G3z+N2xdx3kg="; 19 20 }; 20 21 22 + cargoHash = "sha256-WR9LD5HjLgh9jirnjTc6BeNg8KjVZI+DuJRYEbN3tmE="; 23 + 21 24 env.OPENSSL_NO_VENDOR = 1; 22 25 23 26 buildInputs = [ ··· 25 28 ]; 26 29 nativeBuildInputs = [ 27 30 pkg-config 31 + installShellFiles 28 32 ]; 29 33 30 - doCheck = false; # no tests 34 + postInstall = 35 + let 36 + utpm = 37 + if stdenv.buildPlatform.canExecute stdenv.hostPlatform then 38 + placeholder "out" 39 + else 40 + buildPackages.utpm; 41 + in 42 + '' 43 + installShellCompletion --cmd utpm \ 44 + --bash <(${utpm}/bin/utpm generate bash) \ 45 + --fish <(${utpm}/bin/utpm generate fish) \ 46 + --zsh <(${utpm}/bin/utpm generate zsh) 47 + ''; 31 48 32 49 meta = { 33 50 description = "Package manager for typst"; ··· 41 58 mainProgram = "utpm"; 42 59 maintainers = with lib.maintainers; [ louis-thevenet ]; 43 60 }; 44 - } 61 + })