Add --version flag with build-time injection via ldflags. Add --mountpoint/-m flag to mount for one-off mount point override. Change init aliases from device path basename (sda1) to UUID prefix (b8b2f8e3) for stability across boots. Add .gitignore. Update flake.nix with version injection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
520 B
Nix
27 lines
520 B
Nix
{
|
|
description = "arca - LUKS volume manager";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
version = "1.0.0";
|
|
in
|
|
{
|
|
packages.${system}.default = pkgs.buildGoModule {
|
|
pname = "arca";
|
|
inherit version;
|
|
src = ./.;
|
|
vendorHash = null;
|
|
ldflags = [
|
|
"-X main.version=${version}"
|
|
];
|
|
};
|
|
};
|
|
}
|