mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
Merge pull request #174354 from peeley/selectdefaultapplication-init
This commit is contained in:
commit
280928ea7d
@ -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";
|
||||
|
36
pkgs/applications/misc/selectdefaultapplication/default.nix
Normal file
36
pkgs/applications/misc/selectdefaultapplication/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user