about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/sensible-utils/default.nix
blob: 238b9f400b89f6209d1edff7ebad04588aeb2a58 (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
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, lib, fetchFromGitLab, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "sensible-utils";
  version = "0.0.18";

  src = fetchFromGitLab {
    domain = "salsa.debian.org";
    owner = "debian";
    repo = "sensible-utils";
    rev = "debian/${version}";
    sha256 = "sha256-fZJKPnEkPfo/3luUcHzAmGB2k1nkA4ATEQMSz0aN0YY=";
  };

  nativeBuildInputs = [ makeWrapper ];

  dontConfigure = true;

  installPhase = ''
    mkdir -p $out/bin

    cp sensible-browser sensible-editor sensible-pager sensible-terminal $out/bin/
  '';

  meta = with lib; {
    description = "A collection of utilities used by programs to sensibly select and spawn an appropriate browser, editor, or pager";
    longDescription = ''
       The specific utilities included are:
       - sensible-browser
       - sensible-editor
       - sensible-pager
    '';
    homepage = "https://salsa.debian.org/debian/sensible-utils";
    changelog = "https://salsa.debian.org/debian/sensible-utils/-/tags";
    license = licenses.gpl2;
    maintainers = with maintainers; [ pbek ];
    platforms = platforms.unix;
  };
}