diff options
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/ya/yambar-cpu/flake.nix | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/pkgs/by-name/ya/yambar-cpu/flake.nix b/pkgs/by-name/ya/yambar-cpu/flake.nix index 6480a40d..3a27bccf 100644 --- a/pkgs/by-name/ya/yambar-cpu/flake.nix +++ b/pkgs/by-name/ya/yambar-cpu/flake.nix @@ -3,31 +3,28 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - crane.url = "github:ipetkov/crane"; - crane.inputs.nixpkgs.follows = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { - self, nixpkgs, - crane, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let - craneLib = crane.mkLib pkgs; - craneBuild = craneLib.buildPackage { - src = craneLib.cleanCargoSource ./.; - - doCheck = true; - }; + pkgs = nixpkgs.legacyPackages."${system}"; in { - packages.default = craneBuild; - legacyPackages.default = craneBuild; - app.default = { - type = "app"; - program = "${self.packages.${system}.default}/bin/cpu_usage"; + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + # rust stuff + cargo + clippy + rustc + rustfmt + + cargo-edit + cargo-expand + ]; }; }); } |