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

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

48 lines
846 B
Nix
Raw Normal View History

2022-09-26 18:14:58 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, openssl
, zlib
2022-09-26 18:14:58 +01:00
, stdenv
, darwin
2022-09-26 18:14:58 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "fw";
version = "2.17.1";
2022-09-26 18:14:58 +01:00
src = fetchFromGitHub {
owner = "brocode";
repo = "fw";
2022-09-26 18:14:58 +01:00
rev = "v${version}";
hash = "sha256-8Jq7VjTKwq8n9lrwTzazkkrq8/mNacFTwz/M+eAwBWM=";
2022-09-26 18:14:58 +01:00
};
cargoHash = "sha256-tIrACx4KRjfxLyxTiP32PpdN8NegaHBIkINsPGgygVQ=";
2022-09-26 18:14:58 +01:00
nativeBuildInputs = [
pkg-config
];
2022-09-26 18:14:58 +01:00
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
2022-09-26 18:14:58 +01:00
];
env = {
OPENSSL_NO_VENDOR = true;
};
2022-09-26 18:14:58 +01:00
meta = with lib; {
description = "A workspace productivity booster";
homepage = "https://github.com/brocode/fw";
license = licenses.wtfpl;
maintainers = with maintainers; [ figsoda ];
};
}