Skip to content

Commit

Permalink
build: flakify
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Sep 14, 2023
1 parent f935cd6 commit 69101fd
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

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

37 changes: 37 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
description = "Arr! Git mobbing in Rust";

inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
defaultPackage = with pkgs; rustPlatform.buildRustPackage rec {
name = "rmob";
src = ./.;

cargoSha256 = "sha256-MSXofOklfy1t0vVEUko2rExgf7/lju7lLkjaOvlckqw=";

buildInputs = [
openssl
];

doCheck = false; # Integration test currently depends on accessing the git directory

# Needed to get openssl-sys to use pkg-config.
# OPENSSL_NO_VENDOR = 1;

nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];

meta = {
description = "CLI swiss army knife fer shippin' code together";
license = lib.licenses.gpl3;
};
};
}
);
}

0 comments on commit 69101fd

Please sign in to comment.