Merge pull request #174354 from peeley/selectdefaultapplication-init

This commit is contained in:
Sandro 2022-07-25 15:07:43 +02:00 committed by GitHub
commit 280928ea7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

View File

@ -9454,6 +9454,12 @@
githubId = 20391;
name = "Nahum Shalman";
};
nsnelson = {
email = "noah.snelson@protonmail.com";
github = "peeley";
githubId = 30942198;
name = "Noah Snelson";
};
nthorne = {
email = "notrupertthorne@gmail.com";
github = "nthorne";

View File

@ -0,0 +1,36 @@
{ stdenv, lib, fetchFromGitHub, qmake, qtbase, wrapQtAppsHook }:
stdenv.mkDerivation {
pname = "selectdefaultapplication";
version = "unstable-2021-08-12";
src = fetchFromGitHub {
owner = "sandsmark";
repo = "selectdefaultapplication";
rev = "c752df6ba8caceeef54bcf6527f1bccc2ca8202a";
sha256 = "C/70xpt6RoQNIlAjSJhOCyheolK4Xp6RiSZmeqMP4fw=";
};
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ qtbase ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp selectdefaultapplication $out/bin
install -Dm644 -t "$out/share/applications" selectdefaultapplication.desktop
install -Dm644 -t "$out/share/icons/hicolor/48x48/apps" selectdefaultapplication.png
runHook postInstall
'';
meta = with lib; {
description = "A very simple application that lets you define default applications on Linux in a sane way";
homepage = "https://github.com/sandsmark/selectdefaultapplication";
maintainers = with maintainers; [ nsnelson ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -10507,6 +10507,8 @@ with pkgs;
seexpr = callPackage ../development/compilers/seexpr { };
selectdefaultapplication = libsForQt5.callPackage ../applications/misc/selectdefaultapplication { };
semgrep = python3.pkgs.callPackage ../tools/security/semgrep { };
semgrep-core = callPackage ../tools/security/semgrep/semgrep-core.nix { };