distant: unstable-2022-03-01 -> 0.16.4

This commit is contained in:
Gabriel Arazas 2022-07-07 21:28:53 +08:00
parent 720507c464
commit 4278f62802

View File

@ -1,52 +1,25 @@
{ stdenv, lib, rustPlatform, fetchFromGitHub, perl, pkg-config, openssl }: { stdenv, lib, rustPlatform, fetchFromGitHub, perl, pkg-config, openssl }:
let rustPlatform.buildRustPackage rec {
version = "unstable-2022-03-01"; version = "0.16.4";
homepage = "https://github.com/chipsenkbeil/distant"; pname = "distant";
license = lib.licenses.mit;
repo = fetchFromGitHub { src = fetchFromGitHub {
owner = "chipsenkbeil"; owner = "chipsenkbeil";
repo = "distant"; repo = "distant";
rev = "f46eeea8d54c6527e590a8da279a6fb4783bfd9f"; rev = "v${version}";
sha256 = "sha256-AVhOs7qqtqz3TOsJiE6mUzMz2zR3qGBYnW9Lwm/JStk="; sha256 = "sha256-lCiTlyzp+q3NnwrILQZYM60fmbjfWFWYAy1rn7HqP54=";
}; };
in lib.recurseIntoAttrs { cargoSha256 = "sha256-0oCSHstuZ/K+cerOa8xEHett8diVmDTjzvo+uLuRtWo=";
distant = rustPlatform.buildRustPackage rec {
inherit version;
pname = "distant";
src = repo; # We'll just tell to use the system's openssl to build openssl-sys.
cargoSha256 = "sha256-KCw0rujcQq3VAWMt54aoa/B61rcSKn2D1gwROAfAckE="; OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ perl openssl ];
# We'll just tell to use the system's openssl to build openssl-sys. meta = with lib; {
OPENSSL_NO_VENDOR = 1; description = "Remotely edit files and run programs";
nativeBuildInputs = [ pkg-config ]; homepage = "https://github.com/chipsenkbeil/distant";
buildInputs = [ perl openssl ]; license = lib.licenses.mit;
meta = with lib; {
inherit homepage license;
description = "Remotely edit files and run programs";
};
};
distant-lua = rustPlatform.buildRustPackage rec {
inherit version;
pname = "distant-lua";
src = repo;
cargoSha256 = "sha256-Cv2obK4m8eCXxpoX0zb1mb9lOdRJzMKRUNPr4dopeFw=";
OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ perl openssl ];
preBuild = "cd distant-lua";
postBuild = "cd ..";
meta = with lib; {
inherit homepage license;
description = "Lua bindings for Distant";
};
}; };
} }