bankserver_rust/flake.nix
2025-02-27 16:33:20 +01:00

29 lines
618 B
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "flake:nixpkgs";
};
outputs =
{ self, nixpkgs }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: {
default = pkgs.callPackage ./package.nix { rev = self.shortRev or "dirty"; };
});
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [ hurl ];
};
});
};
}