depot/third_party/nixpkgs/pkgs/tools/misc/crex/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
700 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "crex";
version = "0.2.5";
src = fetchFromGitHub {
owner = "octobanana";
repo = "crex";
rev = version;
sha256 = "086rvwl494z48acgsq3yq11qh1nxm8kbf11adn16aszai4d4ipr3";
};
postPatch = ''
substituteInPlace CMakeLists.txt --replace "/usr/local/bin" "bin"
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Explore, test, and check regular expressions in the terminal";
homepage = "https://octobanana.com/software/crex";
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
mainProgram = "crex";
};
}