Conversation
b11b104 to
092aef2
Compare
|
@Janik-Haag I read from maintainer-list.nix about invitation to the orgs. How to get invitation? |
|
Hi, a bot invites you automatically once your maintainers entry object gets merged. |
hraban
left a comment
There was a problem hiding this comment.
Personally keen on seeing this happen but I don't think a binary distribution is the way for nixpkgs. My 2¢ fwiw.
|
Btw I had a look at how to compile this on OSX and apparently it requires nodejs (ok), go (ok), and "wails"? some kind of golang library which lets you write osx guis in go & html? It exists in nixpkgs, but currently linux only, which is ironic to say the least. |
hraban
left a comment
There was a problem hiding this comment.
I'm going to change my original feedback about compiling from source being preferable on the basis that one of the dependencies for this isn't available for darwin in nixpkgs, it only works on linux. I don't think it's fair to make this PR contingent on fixing that, as well. It would be nice to add a comment, maybe?
"Downloading as binary package for now because compiling from source requires wails, which is currently only available for linux in nixpkgs."
What do y'all think?
hraban
left a comment
There was a problem hiding this comment.
I know it's old but it still builds and there are no merge conflicts. I just merged this into master locally, built and tested it, and it worked fine.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
This PR still works, would love to see this get merged in. Thanks for your patience @r17x if I had merge rights I'd do it but alas. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
I just checked and apparently |
I don't know whether to laugh or cry... 😂😭 poor @r17x . This PR deserves a place in a Hall of some kind. I guess the rule is to call this xbar-bin, then, right? Would that be an acceptable PR? I can't bear to see this rejected after 2 years because we waited so long to merge it that the build ecosystem has changed from under it 😂 |
|
Lemme make it build from Source @NetaliDev , Maybe I needed some help when I stuck. Don't worries @hraban, I will cry & laugh at the same time. |
|
Sorry for my wording at this point. I know how frustrating it must be, but unfortunately it is a fact that source builds are preferred in the nixpkgs. And of course it's very unfortunate that the PR has been open for so long that a source build is now possible again, but as frustrating as it is, I think we should at least try it. And of course, if it turns out to be too complicated for whatever reason, we can stick with the binaries. |
|
@NetaliDev Don't worries. Let's make it build from source. {
lib,
fetchFromGitHub,
buildGoModule,
wails,
pkg-config,
autoPatchelfHook,
}:
let
version = "2.1.7-beta";
src = fetchFromGitHub {
owner = "matryer";
repo = "xbar";
rev = "v${version}";
sha256 = "sha256-RiTJgMqj5CRykvLCsqdioP8iB+aO8BQMm71KQ3WB75k=";
};
in
buildGoModule {
name = "xbar";
pname = "xbar";
inherit src;
vendorHash = null;
modRoot = "app";
goDeps = src + "/app/go.sum";
nativeBuildInputs = [
wails
pkg-config
autoPatchelfHook
];
patchPhase = ''
echo -n "v${version}" > .version
'';
buildPhase = ''
runHook preBuild
wails build -m -s -trimpath -skipbindings -o xbar
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -R $out/xbar $out/Applications/xbar.app
runHook postInstall
'';
meta = {
description = "Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)";
homepage = "https://xbarapp.com/";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = lib.platforms.darwin;
maintainers = with lib.maintainers; [ r17x ];
license = lib.licenses.mit;
};
}Anyway, I have try to build from source, got an error with |
|
Okay, I have also tried to build it from source and I gave up. I can't even build it outside a derivation by running the provided build scripts. And even if we could build it: I bet that macOS will complain because it is not signed. I've never had anything to do with macOS packaging under Nix, but when I grep for Anyway, if all the other apps are allowed to exist as binary packages, this one should be able to as well, so let's just go with the binary package. |
|
Result of 1 package built:
|
Description of changes
Tested Compilations
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes