1
0
Fork 0
ncpn/flake.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2024-01-30 19:27:14 +01:00
{
description = "Non-creative project name";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-01-30 20:16:04 +01:00
fenix = {
url = "github:nix-community/fenix";
2024-01-30 19:27:14 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
2024-01-30 20:16:04 +01:00
outputs = { self, nixpkgs, fenix, flake-utils, ... }:
2024-01-30 19:27:14 +01:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
2024-01-30 20:16:04 +01:00
inherit system;
2024-01-30 19:27:14 +01:00
};
in
with pkgs;
{
2024-01-30 20:16:04 +01:00
packages.default = pkgs.rustPlatform.buildRustPackage rec {
pname = "ncpn";
version = "0.1.0";
src = self;
2024-02-03 15:20:16 +01:00
cargoSha256 = "sha256-gJSEfA2MINdEFGzoaoVnh3tD2B/TmejkIozzObhUEvU=";
2024-01-30 20:16:04 +01:00
meta = with stdenv.lib; {
description = "Non-creative project name: Yet another link shortener, except this time in Rust!";
homepage = "https://src.honbra.com/honbra/ncpn";
};
};
devShells.default = mkShell {
buildInputs = [
cargo
rustc
2024-02-03 14:42:19 +01:00
clippy
2024-01-30 20:16:04 +01:00
fenix.packages.${system}.latest.rustfmt
2024-01-30 19:27:14 +01:00
rust-analyzer
pkg-config
postgresql
sqlfluff
sqlx-cli
];
};
}
);
}