{ description = "A Nix flake for creating a devshell and build environment for umami"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: { packages.x86_64-linux = let pkgs = import nixpkgs { system = "x86_64-linux"; }; in { default = pkgs.stdenv.mkDerivation { pname = "umami"; version = "1.0.0"; src = ./.; buildInputs = with pkgs; [ clang gnumake valgrind bear openssl ]; buildPhase = "make"; installPhase = '' mkdir -p $out/bin cp ./bin/umami $out/bin/ ''; }; }; devShell.x86_64-linux = let pkgs = import nixpkgs { system = "x86_64-linux"; }; in pkgs.mkShell { buildInputs = with pkgs; [ clang gnumake valgrind bear openssl ]; }; }; }