depot/third_party/nixpkgs/pkgs/tools/misc/sensible-utils/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

40 lines
1.1 KiB
Nix

{ 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.gpl2Plus;
maintainers = with maintainers; [ pbek ];
platforms = platforms.unix;
};
}