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 {
|
2024-04-21 19:28:20 +00:00
|
|
|
imagemagick7_pict-rs = pkgs.callPackage ./nix/pkgs/imagemagick_pict-rs {};
|
|
|
|
ffmpeg6_pict-rs = pkgs.callPackage ./nix/pkgs/ffmpeg_pict-rs {};
|
|
|
|
|
2023-03-10 02:19:40 +00:00
|
|
|
pict-rs = pkgs.callPackage ./pict-rs.nix {
|
|
|
|
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
|
2024-04-21 19:28:20 +00:00
|
|
|
inherit imagemagick7_pict-rs ffmpeg6_pict-rs;
|
2023-03-10 02:19:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
default = pict-rs;
|
|
|
|
};
|
|
|
|
|
2024-04-21 19:28:20 +00:00
|
|
|
docker = pkgs.dockerTools.buildLayeredImage {
|
|
|
|
name = "pict-rs";
|
|
|
|
tag = "latest";
|
|
|
|
|
2024-04-22 02:02:31 +00:00
|
|
|
contents = [ pkgs.tini self.packages.${system}.pict-rs pkgs.bash ];
|
2024-04-21 19:28:20 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
Entrypoint = [ "/bin/tini" "--" "/bin/pict-rs" ];
|
|
|
|
Cmd = [ "run" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-10 02:19:40 +00:00
|
|
|
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
|
2024-06-21 19:40:13 +00:00
|
|
|
cargo-deny
|
2023-03-11 19:02:20 +00:00
|
|
|
cargo-outdated
|
2024-01-15 18:23:21 +00:00
|
|
|
certstrap
|
2023-03-11 19:02:20 +00:00
|
|
|
clippy
|
2024-03-28 00:00:54 +00:00
|
|
|
curl
|
2023-09-02 16:52:55 +00:00
|
|
|
diesel-cli
|
2023-06-11 16:54:25 +00:00
|
|
|
exiftool
|
2023-07-14 01:04:29 +00:00
|
|
|
garage
|
2024-04-21 19:28:20 +00:00
|
|
|
self.packages.${system}.imagemagick7_pict-rs
|
|
|
|
self.packages.${system}.ffmpeg6_pict-rs
|
2024-03-28 00:00:54 +00:00
|
|
|
jq
|
2023-12-16 23:39:42 +00:00
|
|
|
minio-client
|
2023-03-11 19:02:20 +00:00
|
|
|
rust-analyzer
|
|
|
|
rustc
|
|
|
|
rustfmt
|
2023-12-18 05:15:21 +00:00
|
|
|
stdenv.cc
|
2023-04-07 16:20:26 +00:00
|
|
|
taplo
|
2023-10-21 00:08:23 +00:00
|
|
|
tokio-console
|
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
|
|
|
});
|
|
|
|
}
|