nixos-config/pkgs/distant.nix

26 lines
746 B
Nix
Raw Normal View History

2022-03-01 15:03:07 +00:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, perl, pkg-config, openssl }:
2022-07-07 13:28:53 +00:00
rustPlatform.buildRustPackage rec {
version = "0.16.4";
pname = "distant";
2022-03-01 15:03:07 +00:00
2022-07-07 13:28:53 +00:00
src = fetchFromGitHub {
2022-03-01 15:03:07 +00:00
owner = "chipsenkbeil";
repo = "distant";
2022-07-07 13:28:53 +00:00
rev = "v${version}";
sha256 = "sha256-lCiTlyzp+q3NnwrILQZYM60fmbjfWFWYAy1rn7HqP54=";
2022-03-01 15:03:07 +00:00
};
2022-07-07 13:28:53 +00:00
cargoSha256 = "sha256-0oCSHstuZ/K+cerOa8xEHett8diVmDTjzvo+uLuRtWo=";
2022-03-01 15:03:07 +00:00
2022-07-07 13:28:53 +00:00
# We'll just tell to use the system's openssl to build openssl-sys.
OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ perl openssl ];
2022-03-01 15:03:07 +00:00
2022-07-07 13:28:53 +00:00
meta = with lib; {
description = "Remotely edit files and run programs";
homepage = "https://github.com/chipsenkbeil/distant";
license = lib.licenses.mit;
2022-03-01 15:03:07 +00:00
};
}