selectdefaultapplication: init at unstable-2021-08-12

Creates the package definition for `selectdefaultapplication`, an
application to select default applications for various file types on
Linux systems.

authored by

Noah Snelson and committed by
Noah Snelson
985e1520 6d1b077c

+37
+35
pkgs/applications/misc/selectdefaultapplication/default.nix
··· 1 + { stdenv, lib, fetchFromGitHub, qmake, qtbase, wrapQtAppsHook }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "selectdefaultapplication"; 5 + version = "unstable-2021-08-12"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "sandsmark"; 9 + repo = "selectdefaultapplication"; 10 + rev = "c752df6ba8caceeef54bcf6527f1bccc2ca8202a"; 11 + sha256 = "C/70xpt6RoQNIlAjSJhOCyheolK4Xp6RiSZmeqMP4fw="; 12 + }; 13 + 14 + nativeBuildInputs = [ qmake wrapQtAppsHook ]; 15 + buildInputs = [ qtbase ]; 16 + 17 + installPhase = '' 18 + runHook preInstall 19 + 20 + mkdir -p $out/bin 21 + cp selectdefaultapplication $out/bin 22 + 23 + install -Dm644 -t "$out/share/applications" selectdefaultapplication.desktop 24 + install -Dm644 -t "$out/share/icons/hicolor/48x48/apps" selectdefaultapplication.png 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "A very simple application that lets you define default applications on Linux in a sane way"; 31 + homepage = "https://github.com/sandsmark/selectdefaultapplication"; 32 + license = licenses.gpl2; 33 + platforms = platforms.linux; 34 + }; 35 + }
+2
pkgs/top-level/all-packages.nix
··· 10457 10457 10458 10458 seexpr = callPackage ../development/compilers/seexpr { }; 10459 10459 10460 + selectdefaultapplication = libsForQt5.callPackage ../applications/misc/selectdefaultapplication { }; 10461 + 10460 10462 semgrep = python3.pkgs.callPackage ../tools/security/semgrep { }; 10461 10463 semgrep-core = callPackage ../tools/security/semgrep/semgrep-core.nix { }; 10462 10464