Skip to content

Commit

Permalink
Add NixOS Flake (TamtamHero#26)
Browse files Browse the repository at this point in the history
* initial

* update gitignore

* update inputs

* add fw-ectool dependencie

* add module

* fix tabs

* fix package

* fix typo

* fix service

* fix type

* add options

* fix service

* fix build inputs

* add Readme + add suspend script

* remove unneeded };

* fix pkgs.writeShellScript

* remvoe \

* try

* add self

* fix module

* update package

* fix package

* use sleep script

* add config options

* fix typo

* fix typo

* add defaults

* fix type

* add prettyier

* remove beautifyer

* udpate readme

* update installer script

* add missing path

* Update README.md

Co-authored-by: Thomas Eizinger <[email protected]>

* Update flake.nix

Co-authored-by: Thomas Eizinger <[email protected]>

* Update nix/module.nix

Co-authored-by: Thomas Eizinger <[email protected]>

* add descriptions

* fix uninstall

* update readme

* add description

* remove requiremetns.txt + add github actions

* update action

* rename workflow test

* fix service

* try

* try

* Update README.md

* Update README.md

* chagne flake description

* fix suspend script

* fix script

* fix path

* fix install.sh

* fix --no-sudo

* add --no-sudo to other scripts

* fix check

* add option check

* add missing "

* Rename nix action

---------

Co-authored-by: Thomas Eizinger <[email protected]>
  • Loading branch information
Svenum and thomaseizinger committed Aug 25, 2024
1 parent a3685fd commit c2245bb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,3 @@ fabric.properties
.idea/caches/build_file_checksums.ser

.temp

/result
43 changes: 43 additions & 0 deletions nix/packages/fw-ectool.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
stdenv,
lib,
autoPatchelfHook,
libusb1,
libftdi1
}:

stdenv.mkDerivation {
version = "20-04-2024";
name = "fw-ectool";
src = ../../.;

outputs = [ "out" ];

nativeBuildInputs = [
autoPatchelfHook
];

propagatedBuildInputs = [
libusb1
libftdi1
];

installPhase = ''
mkdir -p $out/bin
runHook preInstall
install -m755 ./bin/ectool $out/bin/ectool
ln -s $out/bin/ectool $out/bin/fw-ectool
chmod -R 755 $out/bin/*
'';

doCheck = false;

meta = with lib; {
mainProgram = "ectool";
homepage = "https://github.com/TamtamHero/fw-fanctrl";
description = "fw-ectool customized for fw-fanctrl";
platforms = with platforms; linux;
license = licenses.bsd3;
maintainers = with maintainers; [ "Svenum" ];
};
}

0 comments on commit c2245bb

Please sign in to comment.