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";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
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 = [
|
|
|
|
cargo
|
|
|
|
cargo-outdated
|
|
|
|
clippy
|
2023-06-11 16:54:25 +00:00
|
|
|
exiftool
|
2023-06-19 20:46:23 +00:00
|
|
|
ffmpeg_6-full
|
2023-07-11 23:00:08 +00:00
|
|
|
garage
|
2023-03-11 19:02:20 +00:00
|
|
|
gcc
|
|
|
|
imagemagick
|
|
|
|
rust-analyzer
|
|
|
|
rustc
|
|
|
|
rustfmt
|
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
|
|
|
});
|
|
|
|
}
|