diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/fw')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/fw/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/fw/default.nix b/nixpkgs/pkgs/tools/misc/fw/default.nix new file mode 100644 index 000000000000..c3cdc8289965 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/fw/default.nix @@ -0,0 +1,39 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, libgit2 +, openssl +, stdenv +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "fw"; + version = "2.16.1"; + + src = fetchFromGitHub { + owner = "brocode"; + repo = pname; + rev = "v${version}"; + sha256 = "1nhkirjq2q9sxg4k2scy8vxlqa9ikvr5lid0f22vws07vif4kkfs"; + }; + + cargoSha256 = "sha256-iD3SBSny0mYpmVEInYaylHn0AbtIqTOwJHdFeq3UBaM="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libgit2 openssl ] ++ lib.optionals stdenv.isDarwin [ + Security + ]; + + OPENSSL_NO_VENDOR = 1; + USER = "nixbld"; + + meta = with lib; { + description = "A workspace productivity booster"; + homepage = "https://github.com/brocode/fw"; + license = licenses.wtfpl; + maintainers = with maintainers; [ figsoda ]; + }; +} |