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.
This commit is contained in:
parent
6d1b077c1b
commit
985e152050
35
pkgs/applications/misc/selectdefaultapplication/default.nix
Normal file
35
pkgs/applications/misc/selectdefaultapplication/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -10457,6 +10457,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 a new issue