mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
54 lines
1011 B
Nix
54 lines
1011 B
Nix
{ lib
|
|
, mkDerivation
|
|
, makeDesktopItem
|
|
, fetchFromGitLab
|
|
, qmake
|
|
# qt
|
|
, qtbase
|
|
, qtwebsockets
|
|
}:
|
|
|
|
let
|
|
desktopItem = makeDesktopItem {
|
|
name = "Michabo";
|
|
desktopName = "Michabo";
|
|
exec = "Michabo";
|
|
};
|
|
|
|
in mkDerivation rec {
|
|
pname = "michabo";
|
|
version = "0.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "git.pleroma.social";
|
|
owner = "kaniini";
|
|
repo = "michabo";
|
|
rev = "v${version}";
|
|
sha256 = "0pl4ymdb36r0kwlclfjjp6b1qml3fm9ql7ag5inprny5y8vcjpzn";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qmake
|
|
];
|
|
buildInputs = [
|
|
qtbase
|
|
qtwebsockets
|
|
];
|
|
|
|
qmakeFlags = [ "michabo.pro" "DESTDIR=${placeholder "out"}/bin" ];
|
|
|
|
postInstall = ''
|
|
ln -s ${desktopItem}/share $out/share
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Native desktop app for Pleroma and Mastodon servers";
|
|
mainProgram = "Michabo";
|
|
homepage = "https://git.pleroma.social/kaniini/michabo";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|
|
|