nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 versionCheckHook, 6 nix-update-script, 7}: 8rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "prmt"; 10 version = "0.2.4"; 11 12 src = fetchFromGitHub { 13 repo = "prmt"; 14 owner = "3axap4eHko"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-NfnVWkGVewky6s49RfM0pFyHFypaAZfjIdEDIus36mg="; 17 }; 18 19 cargoHash = "sha256-Vc2uCFD3A3huSFaYbgZHRWgiQnxXkz7BzvmdT7AsnoY="; 20 21 # Fail to run in sandbox environment 22 checkFlags = map (t: "--skip=${t}") [ 23 "modules::path::tests::relative_path_inside_home_renders_tilde" 24 "modules::path::tests::relative_path_with_shared_prefix_is_not_tilde" 25 "test_git_module" 26 ]; 27 28 nativeInstallCheckInputs = [ versionCheckHook ]; 29 30 doInstallCheck = true; 31 32 passthru.updateScript = nix-update-script { }; 33 34 meta = { 35 description = "Ultra-fast, customizable shell prompt generator"; 36 homepage = "https://github.com/3axap4eHko/prmt"; 37 changelog = "https://github.com/3axap4eHko/prmt/releases/tag/v${finalAttrs.version}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ nartsiss ]; 40 mainProgram = "prmt"; 41 }; 42})