about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/crex/default.nix
blob: 696fbe8638327f85ad2e513c275e10a841ec56d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  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 stdenv.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;
  };
}