about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 11:50:36 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 11:50:36 +0200
commit5e9c03d679b8f1b878472228823c58c731d37da6 (patch)
treea591ebe2ecc6c309fccbb42fefe95d56ca0f7b8e /pkgs
parentbuild(treewide): Update (diff)
downloadnixos-config-5e9c03d679b8f1b878472228823c58c731d37da6.tar.gz
nixos-config-5e9c03d679b8f1b878472228823c58c731d37da6.zip
fix(pkgs/by-name/ya/yambar-{memory,cpu}): Add devshell
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/ya/yambar-cpu/flake.nix27
-rw-r--r--pkgs/by-name/ya/yambar-memory/flake.nix29
2 files changed, 25 insertions, 31 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
+        ];
       };
     });
 }
diff --git a/pkgs/by-name/ya/yambar-memory/flake.nix b/pkgs/by-name/ya/yambar-memory/flake.nix
index 030667f1..9182eceb 100644
--- a/pkgs/by-name/ya/yambar-memory/flake.nix
+++ b/pkgs/by-name/ya/yambar-memory/flake.nix
@@ -1,33 +1,30 @@
 {
-  description = "A smart way to check your cpu usage";
+  description = "A smart way to check your memory usage";
 
   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/memory";
+      devShells.default = pkgs.mkShell {
+        packages = with pkgs; [
+          # rust stuff
+          cargo
+          clippy
+          rustc
+          rustfmt
+
+          cargo-edit
+          cargo-expand
+        ];
       };
     });
 }