nixos-config/pkgs/distant.nix

31 lines
951 B
Nix
Raw Permalink Normal View History

2025-01-15 06:00:12 +00:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
2022-03-01 15:03:07 +00:00
2022-07-07 13:28:53 +00:00
rustPlatform.buildRustPackage rec {
2023-07-15 07:43:22 +00:00
version = "0.20.0";
2022-07-07 13:28:53 +00:00
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}";
2023-07-15 07:43:22 +00:00
hash = "sha256-DcnleJUAeYg3GSLZljC3gO9ihiFz04dzT/ddMnypr48=";
2022-03-01 15:03:07 +00:00
};
2023-07-15 07:43:22 +00:00
cargoHash = "sha256-7MNNdm4b9u5YNX04nBtKcrw+phUlpzIXo0tJVfcgb40=";
# Too many tests failing for now so we'll have to disable them. Much of the
# failed tests require a home directory and network access.
doCheck = false;
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.
2023-07-15 07:43:22 +00:00
env.OPENSSL_NO_VENDOR = 1;
2022-07-07 13:28:53 +00:00
nativeBuildInputs = [ pkg-config ];
2023-07-15 07:43:22 +00:00
buildInputs = [ 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;
2023-07-15 07:43:22 +00:00
maintainers = with maintainers; [ foo-dogsquared ];
2022-03-01 15:03:07 +00:00
};
}