diff options
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/du/dublin-traceroute/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ri/ricochet-refresh/package.nix | 79 | ||||
-rw-r--r-- | pkgs/by-name/to/toml-cli/package.nix | 33 |
3 files changed, 115 insertions, 3 deletions
diff --git a/pkgs/by-name/du/dublin-traceroute/package.nix b/pkgs/by-name/du/dublin-traceroute/package.nix index fedb585fc6a2..5f559c4d97c4 100644 --- a/pkgs/by-name/du/dublin-traceroute/package.nix +++ b/pkgs/by-name/du/dublin-traceroute/package.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation { pname = "dublin-traceroute"; - version = "0.4.2-unstable-2023-04-12"; + version = "0.4.2-unstable-2024-01-09"; src = fetchFromGitHub { owner = "insomniacslk"; repo = "dublin-traceroute"; - rev = "2fb78ea05596dfdf8f7764b497eb8d3a812cb695"; - hash = "sha256-E1HYMd0wDTfAZ0TamQFazh8CPhMa2lNIbF4aEBf5qhk="; + rev = "b136db81cfbb30d5fd324dfccc97fca49a5ecee1"; + hash = "sha256-FsolpeQGaLDjDE5Yk58t2hFQJgM58zafIx6s5ejYKnY="; }; nativeBuildInputs = [ cmake pkg-config ]; diff --git a/pkgs/by-name/ri/ricochet-refresh/package.nix b/pkgs/by-name/ri/ricochet-refresh/package.nix new file mode 100644 index 000000000000..c90c6aabbd92 --- /dev/null +++ b/pkgs/by-name/ri/ricochet-refresh/package.nix @@ -0,0 +1,79 @@ +{ lib +, stdenv +, fetchFromGitHub +, qt5 +, openssl +, protobuf3_20 # https://github.com/blueprint-freespeech/ricochet-refresh/issues/178 +, pkg-config +, cmake +}: + +let + protobuf = protobuf3_20; +in +stdenv.mkDerivation (finalAttrs: { + pname = "ricochet-refresh"; + version = "3.0.18"; + + src = fetchFromGitHub { + owner = "blueprint-freespeech"; + repo = "ricochet-refresh"; + rev = "v${finalAttrs.version}-release"; + hash = "sha256-QN2cxcYWGoszPdrWv+4FoTGNjQViK/OwxbBC6uoDhfA="; + fetchSubmodules = true; + }; + + sourceRoot = "${finalAttrs.src.name}/src"; + + strictDeps = true; + + buildInputs = (with qt5; [ + qtbase + qttools + qtmultimedia + qtquickcontrols2 + qtwayland + ]) ++ [ + openssl + protobuf + ]; + + nativeBuildInputs = [ + pkg-config + cmake + qt5.wrapQtAppsHook + ]; + + enableParallelBuilding = true; + + # https://github.com/blueprint-freespeech/ricochet-refresh/blob/main/BUILDING.md + cmakeFlags = [ + (lib.cmakeFeature "CMAKE_BUILD_TYPE" "MinSizeRel") + (lib.cmakeBool "RICOCHET_REFRESH_INSTALL_DESKTOP" true) + (lib.cmakeBool "USE_SUBMODULE_FMT" true) + ]; + + meta = { + description = "Secure chat without DNS or WebPKI"; + longDescription = '' + Ricochet Refresh is a peer-to-peer messenger app that uses Tor + to connect clients. + + When you start Ricochet Refresh it creates a Tor hidden + service on your computer. The address of this hidden service + is your anonymous identity on the Tor network and how others + will be able to communicate with you. When you start a chat + with one of your contacts a Tor circuit is created between + your machine and the your contact's machine. + + The original Ricochet uses onion "v2" hashed-RSA addresses, + which are no longer supported by the Tor network. Ricochet + Refresh upgrades the original Ricochet protocol to use the + current onion "v3" ed25519 addresses. + ''; + homepage = "https://www.ricochetrefresh.net/"; + downloadPage = "https://github.com/blueprint-freespeech/ricochet-refresh/releases"; + license = lib.licenses.bsd3; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/by-name/to/toml-cli/package.nix b/pkgs/by-name/to/toml-cli/package.nix new file mode 100644 index 000000000000..42c9ca639337 --- /dev/null +++ b/pkgs/by-name/to/toml-cli/package.nix @@ -0,0 +1,33 @@ +{ lib, fetchCrate, rustPlatform, testers, toml-cli }: + +rustPlatform.buildRustPackage rec { + pname = "toml-cli"; + version = "0.2.3"; + + src = fetchCrate { + inherit version; + pname = "toml-cli"; + hash = "sha256-V/yMk/Zt3yvEx10nzRhY/7GYnQninGg9h63NSaQChSA="; + }; + + cargoHash = "sha256-v+GBn9mmiWcWnxmpH6JRPVz1fOSrsjWoY+l+bdzKtT4="; + + cargoTestFlags = [ + "--bin=toml" + # # The `CARGO_BIN_EXE_toml` build-time env doesn't appear to be resolving + # # correctly with buildRustPackage. Only run the unittests instead. + # "--test=integration" + ]; + + passthru.tests = { + version = testers.testVersion { package = toml-cli; }; + }; + + meta = { + description = "A simple CLI for editing and querying TOML files"; + homepage = "https://github.com/gnprice/toml-cli"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ phlip9 ]; + mainProgram = "toml"; + }; +} |