nixpkgs/pkgs/tools/misc/fw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
881 B
Nix
Raw Normal View History

2022-09-26 19:14:58 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, openssl
, zlib
2022-09-26 19:14:58 +02:00
, stdenv
, darwin
2022-09-26 19:14:58 +02:00
}:
rustPlatform.buildRustPackage rec {
pname = "fw";
2023-12-15 05:09:06 +01:00
version = "2.19.1";
2022-09-26 19:14:58 +02:00
src = fetchFromGitHub {
owner = "brocode";
repo = "fw";
2022-09-26 19:14:58 +02:00
rev = "v${version}";
2023-12-15 05:09:06 +01:00
hash = "sha256-fG1N/3Er7BvXOJTMGooaIMa5I9iNwnH+1om2jcWkI68=";
2022-09-26 19:14:58 +02:00
};
2023-12-15 05:09:06 +01:00
cargoHash = "sha256-1d2uX/A1HZAmAI3d0iet1NkG0IFuJpVnhWxpY0jVVUI=";
2022-09-26 19:14:58 +02:00
nativeBuildInputs = [
pkg-config
];
2022-09-26 19:14:58 +02:00
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
2023-11-07 01:29:47 +01:00
darwin.apple_sdk.frameworks.SystemConfiguration
2022-09-26 19:14:58 +02:00
];
env = {
OPENSSL_NO_VENDOR = true;
};
2022-09-26 19:14:58 +02:00
meta = with lib; {
description = "A workspace productivity booster";
homepage = "https://github.com/brocode/fw";
license = licenses.wtfpl;
maintainers = with maintainers; [ figsoda ];
2023-11-27 02:17:53 +01:00
mainProgram = "fw";
2022-09-26 19:14:58 +02:00
};
}