{ description = "A command saver"; inputs = { nixpkgs.url = "nixpkgs/nixos-22.11"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101"; version = builtins.substring 0 8 lastModifiedDate; doe = pkgs.buildGoModule { pname = "doe"; inherit version; src = ./.; vendorSha256 = "sha256-gItYVP5ZOMH1xxuw9YttpWfwfL5wckp37q1aRoFPjX0="; }; in { # Provide some binary packages for selected system types. packages.default = doe; apps.default = { name = "doe"; type = "app"; program = "${doe}/bin/doe"; }; devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ go gopls charm ]; }; } ); }