Files
publicly/flake.nix

39 lines
842 B
Nix
Raw Permalink Normal View History

2025-03-18 22:01:02 +05:30
{
description = "devshell for github:lavafroth/publicly";
2025-03-18 22:01:02 +05:30
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs =
{
nixpkgs,
2025-04-23 07:44:32 +05:30
...
2025-03-18 22:01:02 +05:30
}:
2025-04-23 07:44:32 +05:30
let
forAllSystems =
f:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: {
default = pkgs.pkgsStatic.rustPlatform.buildRustPackage {
pname = "publicly";
2025-04-23 07:44:03 +05:30
version = "1.0.0";
src = ./.;
2025-07-07 18:32:11 +05:30
cargoLock.lockFile = ./Cargo.lock;
};
2025-04-23 07:44:32 +05:30
});
devShells = forAllSystems (pkgs: {
2025-04-23 07:44:32 +05:30
default = pkgs.mkShell rec {
2025-03-18 22:01:02 +05:30
packages = with pkgs; [
stdenv.cc.cc.lib
];
LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath packages}";
};
2025-04-23 07:44:32 +05:30
});
};
2025-03-18 22:01:02 +05:30
}