lol

Merge pull request #294931 from getreu/master

tpnote: init at 1.23.9

authored by

Pol Dellaiera and committed by
GitHub
5efe4215 6ed6c55f

+65
+6
maintainers/maintainer-list.nix
··· 7050 7050 github = "getpsyched"; 7051 7051 githubId = 43472218; 7052 7052 }; 7053 + getreu = { 7054 + email = "getreu@web.de"; 7055 + github = "getreu"; 7056 + githubId = 579082; 7057 + name = "Jens Getreu"; 7058 + }; 7053 7059 gfrascadorio = { 7054 7060 email = "gfrascadorio@tutanota.com"; 7055 7061 github = "gfrascadorio";
+59
pkgs/by-name/tp/tpnote/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , rustPlatform 6 + , cmake 7 + , pkg-config 8 + , oniguruma 9 + , darwin 10 + , installShellFiles 11 + , tpnote 12 + , testers 13 + }: 14 + 15 + 16 + rustPlatform.buildRustPackage rec { 17 + pname = "tpnote"; 18 + version = "1.23.9"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "getreu"; 22 + repo = "tp-note"; 23 + rev = "v${version}"; 24 + hash = "sha256-HOCd5N8oS8N+9alR3cG7IEghvhvcc8A+O24L6FD1F38="; 25 + }; 26 + 27 + cargoHash = "sha256-T1AYiwGPolYUhJQzTyR7v5dqqNFUCSfSBzU3CithZPw="; 28 + 29 + nativeBuildInputs = [ 30 + cmake 31 + pkg-config 32 + installShellFiles 33 + ]; 34 + buildInputs = [ 35 + oniguruma 36 + ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 37 + AppKit 38 + CoreServices 39 + SystemConfiguration 40 + ]); 41 + 42 + RUSTONIG_SYSTEM_LIBONIG = true; 43 + 44 + passthru.tests.version = testers.testVersion { package = tpnote; }; 45 + 46 + # The `tpnote` crate has no unit tests. All tests are in `tpnote-lib`. 47 + checkType = "debug"; 48 + cargoTestFlags = "--package tpnote-lib"; 49 + doCheck = true; 50 + 51 + meta = { 52 + changelog = "https://github.com/getreu/tp-note/releases/tag/v${version}"; 53 + description = "Markup enhanced granular note-taking"; 54 + homepage = "https://blog.getreu.net/projects/tp-note/"; 55 + license = lib.licenses.mit; 56 + mainProgram = "tpnote"; 57 + maintainers = with lib.maintainers; [ getreu ]; 58 + }; 59 + }