first commit

This commit is contained in:
Troy 2025-05-22 00:44:19 +01:00
commit 928887c1a3
Signed by: troy
GPG key ID: DFC06C02ED3B4711
8 changed files with 384 additions and 0 deletions

41
flake.nix Normal file
View file

@ -0,0 +1,41 @@
{
description = "Markdown to JSON bookmark opener.";
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 = {
broot = let
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
in
pkgs.rustPlatform.buildRustPackage {
pname = manifest.name;
version = manifest.version;
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = [pkgs.pkg-config];
buildInputs = [pkgs.openssl];
};
default = self.packages.${system}.broot;
};
})
// {
overlays.default = final: prev: {
inherit (self.packages.${final.system}) broot;
};
};
}