I’m interested in learning how to build a package that can be used in my nixos or home manager config, but I’m not sure how to do it. The package is btrfs-assistant and I believe @dalto is the primary developer on it. Does anyone have a tutorial I could follow to continue on my nix learning journey?
It’s not merged, yet. There’s some stuff that’s hard coded in the source code that I’m trying to make the derivation support so that it doesn’t get incorrect runtime behavior.
I just did a test build of your package nix build "nixpkgs/7f6f891#btrfs-assistant on NixOS Gnome and it appears to be working; however, when I try to create a new snapper config it fails with the error “Failure (org.freedesktop.DBus.Error.ServiceUnknown).” I’m wondering if this is due to snapper being optional? Is there a parameter I need to pass during the build to enable snapper? Or maybe it has to do with running a QT application in Gnome?
From my testing, snapper’s implementation in NixOS is pretty underwhelming and not on parity with other linux distros. Snapper - should .snapshots subvolumes be created automatically? - #3 by claes example post. I had to basically describe my snapper config in my nixos config and you can just use Btrfs Assistant currently to browse and create snapshots but not configs.