Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
description = "FlexAuth - inhouse-auth";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};

outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
# name = "FlexAuth";
# src = ./.;
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
with pkgs;
{
devShells.default = mkShell {
nativeBuildInputs = [
rust-bin.stable.latest.default
openssl_1_1
pkg-config
];

buildInputs = [
openssl_1_1
pkg-config
zlib
];

CARGO_HOME = "${pkgs.writeTextDir "cargo-home" ""}";
OPENSSL_DIR = "${openssl_1_1}";
};

packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "inhouse-auth";
version = "0.1.0";
src = ./.;

nativeBuildInputs = [
openssl
pkg-config
];

cargoHash = "sha256-wZ5q6Ghkr9/14cLZqASlPZZI4pktxmHy0BxOmzIbrMM=";
};
}
);
}
Loading