marvin/flake.nix

37 lines
936 B
Nix
Raw Normal View History

2022-06-27 19:28:22 -04:00
{
description = "IPFS deploy tool";
inputs = {
2022-12-03 22:49:32 -05:00
nixpkgs.url = "github:nixos/nixpkgs/release-22.11";
2022-06-27 19:28:22 -04:00
utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
naersk-lib = naersk.lib."${system}";
in
rec {
# `nix build`
packages.marvin = naersk-lib.buildPackage {
pname = "marvin";
root = ./.;
};
packages.default = packages.marvin;
# `nix run`
apps.marvin = utils.lib.mkApp {
drv = packages.marvin;
};
apps.default = apps.marvin;
# `nix develop`
devShells.default = pkgs.mkShell {
name = "marvin";
2022-12-03 22:49:32 -05:00
nativeBuildInputs = with pkgs; [ libiconv rustup rust-analyzer ];
2022-06-27 19:28:22 -04:00
};
});
}