-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Added flake.nix for NixOS support #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { | ||
| description = "Nixpkg for LibrePods"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
| flake-utils.url = "github:numtide/flake-utils"; | ||
| }; | ||
|
|
||
| outputs = { | ||
| self, | ||
| nixpkgs, | ||
| flake-utils, | ||
| }: | ||
| flake-utils.lib.eachDefaultSystem (system: let | ||
| pkgs = import nixpkgs {inherit system;}; | ||
| in { | ||
| packages.default = pkgs.stdenv.mkDerivation { | ||
| pname = "librepods"; | ||
| version = "0.1.0"; | ||
|
|
||
| src = ./linux; | ||
|
|
||
| nativeBuildInputs = with pkgs; [ | ||
| cmake | ||
| pkg-config | ||
| qt6.wrapQtAppsHook | ||
| makeWrapper | ||
| ]; | ||
|
|
||
| buildInputs = with pkgs; [ | ||
| qt6.qtbase | ||
| qt6.qtdeclarative | ||
| qt6.qtsvg | ||
| qt6.qtconnectivity | ||
| qt6.qtmultimedia | ||
| qt6Packages.qtstyleplugin-kvantum | ||
|
|
||
| openssl | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. I don't have openssl installed on my system and it works without this line. |
||
| bluez | ||
| libpulseaudio | ||
| ]; | ||
|
|
||
| postInstall = '' | ||
| wrapProgram $out/bin/librepods \ | ||
| --unset QT_STYLE_OVERRIDE | ||
| ''; | ||
|
Comment on lines
+43
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which style are you unsetting here? I just don't know what the variable does.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixed some weird QT styling bug for me |
||
|
|
||
| meta = with pkgs.lib; { | ||
| description = "A cross-platform app to manage AirPods on Linux and Android."; | ||
| homepage = "https://github.com/kavishdevar/librepods"; | ||
| license = licenses.agpl3Only; | ||
| maintainers = []; | ||
| platforms = platforms.linux; | ||
| }; | ||
| }; | ||
|
|
||
| apps.default = flake-utils.lib.mkApp { | ||
| drv = self.packages.${system}.default; | ||
| }; | ||
|
|
||
| devShells.default = pkgs.mkShell { | ||
| inputsFrom = [self.packages.${system}.default]; | ||
| }; | ||
| }); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need these packages? For me it builds fine without them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied qtdeclarative from here, dont know where qtsvg came from