summary refs log tree commit diff
path: root/pkgs/tools/misc/sensible-utils
diff options
context:
space:
mode:
authorPatrizio Bekerle <patrizio@bekerle.com>2023-06-21 14:30:29 +0200
committerGitHub <noreply@github.com>2023-06-21 14:30:29 +0200
commitf127904a2b36cbcff8da2adefe07c59c4e99a2be (patch)
treedd55970c6daf3d42b20252272c8a0fb581c2bee3 /pkgs/tools/misc/sensible-utils
parentca3c6352462c90b724799a16331d122c22281624 (diff)
downloadnixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar.gz
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar.bz2
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar.lz
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar.xz
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.tar.zst
nixpkgs-f127904a2b36cbcff8da2adefe07c59c4e99a2be.zip
sensible-utils: init at 0.0.18 (#237715)
Diffstat (limited to 'pkgs/tools/misc/sensible-utils')
-rw-r--r--pkgs/tools/misc/sensible-utils/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/misc/sensible-utils/default.nix b/pkgs/tools/misc/sensible-utils/default.nix
new file mode 100644
index 00000000000..f6e8d95f5cd
--- /dev/null
+++ b/pkgs/tools/misc/sensible-utils/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, lib, fetchFromGitLab, makeWrapper, bash }:
+
+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 = "The package provides 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;
+  };
+}
+