2022-09-26 17:14:58 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libgit2
|
|
|
|
, openssl
|
2023-08-02 01:10:55 +00:00
|
|
|
, zlib
|
2022-09-26 17:14:58 +00:00
|
|
|
, stdenv
|
2023-08-02 01:10:55 +00:00
|
|
|
, darwin
|
2022-09-26 17:14:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fw";
|
2023-10-31 18:40:56 +00:00
|
|
|
version = "2.18.0";
|
2022-09-26 17:14:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brocode";
|
2023-08-02 01:10:55 +00:00
|
|
|
repo = "fw";
|
2022-09-26 17:14:58 +00:00
|
|
|
rev = "v${version}";
|
2023-10-31 18:40:56 +00:00
|
|
|
hash = "sha256-8PcIaSXmk6/p5N6L2/nLrFS6JUZRRJsN2mKQYtevS6s=";
|
2022-09-26 17:14:58 +00:00
|
|
|
};
|
|
|
|
|
2023-10-31 18:40:56 +00:00
|
|
|
cargoHash = "sha256-l6mRjVk3qNAxfNqcKGo2dceD2Xb+hk+xMvdh/U1jZXw=";
|
2022-09-26 17:14:58 +00:00
|
|
|
|
2023-08-02 01:10:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-09-26 17:14:58 +00:00
|
|
|
|
2023-08-02 01:10:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-11-07 00:29:47 +00:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2022-09-26 17:14:58 +00:00
|
|
|
];
|
|
|
|
|
2023-08-02 01:10:55 +00:00
|
|
|
env = {
|
|
|
|
OPENSSL_NO_VENDOR = true;
|
|
|
|
};
|
2022-09-26 17:14:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A workspace productivity booster";
|
|
|
|
homepage = "https://github.com/brocode/fw";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|