2023-03-10 01:54:03 +00:00
|
|
|
{
|
|
|
|
description = "pict-rs";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-10-02 17:50:22 +00:00
|
|
|
fenix = {
|
|
|
|
url = "github:nix-community/fenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-03-10 01:54:03 +00:00
|
|
|
};
|
|
|
|
|
2023-10-02 17:50:22 +00:00
|
|
|
outputs = { self, nixpkgs, flake-utils, fenix }:
|
2023-03-10 01:54:03 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2023-10-02 17:50:22 +00:00
|
|
|
overlays = [ fenix.overlays.default ];
|
2023-03-10 01:54:03 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2023-03-10 02:19:40 +00:00
|
|
|
packages = rec {
|
|
|
|
pict-rs = pkgs.callPackage ./pict-rs.nix {
|
|
|
|
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
|
|
|
|
};
|
|
|
|
|
|
|
|
default = pict-rs;
|
|
|
|
};
|
|
|
|
|
|
|
|
apps = rec {
|
|
|
|
dev = flake-utils.lib.mkApp { drv = self.packages.${system}.pict-rs; };
|
|
|
|
default = dev;
|
2023-03-10 01:54:03 +00:00
|
|
|
};
|
2023-03-10 02:19:40 +00:00
|
|
|
|
2023-03-10 03:29:56 +00:00
|
|
|
devShell = with pkgs; mkShell {
|
2023-03-11 19:02:20 +00:00
|
|
|
nativeBuildInputs = [
|
2023-09-02 16:52:55 +00:00
|
|
|
diesel-cli
|
2023-06-11 16:54:25 +00:00
|
|
|
exiftool
|
2023-10-02 17:50:22 +00:00
|
|
|
(fenix.packages.${system}.complete.withComponents [
|
|
|
|
"cargo"
|
|
|
|
"clippy"
|
|
|
|
"rust-src"
|
|
|
|
"rustc"
|
|
|
|
"rustfmt"
|
|
|
|
])
|
2023-06-19 20:46:23 +00:00
|
|
|
ffmpeg_6-full
|
2023-07-14 01:04:29 +00:00
|
|
|
garage
|
2023-03-11 19:02:20 +00:00
|
|
|
gcc
|
|
|
|
imagemagick
|
|
|
|
protobuf
|
|
|
|
rust-analyzer
|
2023-04-07 16:20:26 +00:00
|
|
|
taplo
|
2023-03-11 19:02:20 +00:00
|
|
|
];
|
2023-03-10 03:29:56 +00:00
|
|
|
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
|
|
};
|
2023-03-10 01:54:03 +00:00
|
|
|
});
|
|
|
|
}
|