pict-rs/flake.nix

72 lines
1.8 KiB
Nix
Raw Permalink Normal View History

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 {
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;
inherit imagemagick7_pict-rs ffmpeg6_pict-rs;
2023-03-10 02:19:40 +00:00
};
default = pict-rs;
};
docker = pkgs.dockerTools.buildLayeredImage {
name = "pict-rs";
tag = "latest";
contents = [ pkgs.tini self.packages.${system}.pict-rs pkgs.bash ];
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
cargo-outdated
2024-01-15 18:23:21 +00:00
certstrap
2023-03-11 19:02:20 +00:00
clippy
curl
2023-09-02 16:52:55 +00:00
diesel-cli
2023-06-11 16:54:25 +00:00
exiftool
garage
self.packages.${system}.imagemagick7_pict-rs
self.packages.${system}.ffmpeg6_pict-rs
jq
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
});
}