Files
publicly/flake.nix
Himadri Bhattacharjee 7ca5f2803a deps: bump flake
2025-07-07 18:32:11 +05:30

39 lines
842 B
Nix

{
description = "devshell for github:lavafroth/publicly";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs =
{
nixpkgs,
...
}:
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";
version = "1.0.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
});
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell rec {
packages = with pkgs; [
stdenv.cc.cc.lib
];
LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath packages}";
};
});
};
}