summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2021-02-24 11:04:40 +0100
committerYves Fischer <yvesf+git@xapek.org>2021-02-24 11:04:40 +0100
commitec601443cfb26a6540f9459a5b741ecfd3c96f11 (patch)
treefa337ab76a6f09fe19d220d81343a350a7bb69a5 /default.nix
parent6c3865eae8dd5e3999a66fdd2ddb70a893e22e7d (diff)
downloadbatteriewarner-ec601443cfb26a6540f9459a5b741ecfd3c96f11.tar.gz
batteriewarner-ec601443cfb26a6540f9459a5b741ecfd3c96f11.zip
fix nix packaging
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..6d329d8
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,21 @@
+{ pkgs ? (import <nixpkgs> {}) }:
+let
+ rustPlatform = pkgs.rustPlatform;
+ makeWrapper = pkgs.makeWrapper;
+in
+ rustPlatform.buildRustPackage rec {
+ name = "batteriewarner-${version}";
+ version = "2017-09-15";
+ src = ./.;
+
+ cargoSha256 = "sha256:1rf1sckjpjwdvllx3aapw646wl522j9cn7zx4bah805d6ak9plls";
+
+ buildInputs = [ makeWrapper ];
+
+ meta = {
+ description = "Display low battery status using the power led of Thinkpads X-series";
+ homepage = https://github.com/yvesf/batteriewarner;
+ platforms = pkgs.lib.platforms.all;
+ };
+ }
+