{ description = ""; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; # inputs for following systems = { url = "github:nix-systems/x86_64-linux"; # only evaluate for this system }; flake-compat = { url = "github:edolstra/flake-compat"; flake = false; }; flake-utils = { url = "github:numtide/flake-utils"; inputs = { systems.follows = "systems"; }; }; }; outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; nativeBuildInputs = with pkgs; [valgrind]; in { packages.default = pkgs.stdenv.mkDerivation { src = ./.; pname = ""; version = "0.1"; makeFlags = ["PREFIX=${placeholder "out"}"]; inherit nativeBuildInputs; }; apps.default = { type = "app"; program = "${self.packages.${system}.default}/bin/"; }; devShells.default = pkgs.mkShell { packages = with pkgs; [ cocogitto ]; inherit nativeBuildInputs; }; }); } # vim: ts=2