mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
qtalarm: init at 2.5.1 (#337732)
This commit is contained in:
commit
a9e496dac9
81
pkgs/by-name/qt/qtalarm/package.nix
Normal file
81
pkgs/by-name/qt/qtalarm/package.nix
Normal file
@ -0,0 +1,81 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
libsForQt5,
|
||||
qt5,
|
||||
makeDesktopItem,
|
||||
nix-update-script,
|
||||
copyDesktopItems,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "qtalarm";
|
||||
version = "2.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CountMurphy";
|
||||
repo = "QTalarm";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-87w5YFQ9olLnCfPF04jOnIMn1NtE2M2n5WZX4e69UGU=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
libsForQt5.qtbase
|
||||
libsForQt5.qtmultimedia
|
||||
];
|
||||
|
||||
installPhase =
|
||||
''
|
||||
runHook preInstall
|
||||
''
|
||||
+ (
|
||||
if stdenv.isDarwin then
|
||||
''
|
||||
mkdir -p $out/Applications
|
||||
mv qtalarm.app $out/Applications
|
||||
''
|
||||
else
|
||||
''
|
||||
install -Dm755 qtalarm -t $out/bin
|
||||
install -Dm644 Icons/1349069370_Alarm_Clock.png $out/share/icons/hicolor/48x48/apps/qtalarm.png
|
||||
install -Dm644 Icons/1349069370_Alarm_Clock24.png $out/share/icons/hicolor/24x24/apps/qtalarm.png
|
||||
install -Dm644 Icons/1349069370_Alarm_Clock16.png $out/share/icons/hicolor/16x16/apps/qtalarm.png
|
||||
''
|
||||
)
|
||||
+ ''
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
qt5.wrapQtAppsHook
|
||||
qt5.qmake
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "QTalarm";
|
||||
exec = "qtalarm";
|
||||
icon = "qtalarm";
|
||||
desktopName = "QTalarm";
|
||||
genericName = "Nifty alarm clock";
|
||||
categories = [
|
||||
"Application"
|
||||
"Utility"
|
||||
];
|
||||
terminal = false;
|
||||
})
|
||||
];
|
||||
meta = {
|
||||
description = "Nifty alarm clock written in QT";
|
||||
changelog = "https://github.com/CountMurphy/QTalarm/releases/tag/${finalAttrs.version}";
|
||||
homepage = "https://github.com/CountMurphy/QTalarm";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "qtalarm";
|
||||
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user