From 6c8cea6315d98881d6183ae0df0e41380eb36cc4 Mon Sep 17 00:00:00 2001 From: symphorien Date: Mon, 3 Sep 2018 22:28:15 +0000 Subject: [PATCH] hdaps-gl: init at 0.0.5 (#45986) --- pkgs/tools/misc/hdaps-gl/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/misc/hdaps-gl/default.nix diff --git a/pkgs/tools/misc/hdaps-gl/default.nix b/pkgs/tools/misc/hdaps-gl/default.nix new file mode 100644 index 000000000000..8b19cd038951 --- /dev/null +++ b/pkgs/tools/misc/hdaps-gl/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchzip, freeglut, libGL, libGLU }: + +let version = "0.0.5"; in +stdenv.mkDerivation { + name = "hdaps-gl-${version}"; + src = fetchzip { + url = "mirror://sourceforge/project/hdaps/hdaps-gl/hdaps-gl-${version}/hdaps-gl-${version}.tar.gz"; + sha256 = "16fk4k0lvr4c95vd6c7qdylcqa1h5yjp3xm4xwipdjbp0bvsgxq4"; + }; + + buildInputs = [ freeglut libGL libGLU ]; + + # the Makefile has no install target + installPhase = '' + install -Dt $out/bin ./hdaps-gl + ''; + + meta = with stdenv.lib; { + description = "GL-based laptop model that rotates in real-time via hdaps"; + homepage = https://sourceforge.net/projects/hdaps/; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ maintainers.symphorien ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a9cdbcab12d..75f595c7605a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3082,6 +3082,8 @@ with pkgs; hdapsd = callPackage ../os-specific/linux/hdapsd { }; + hdaps-gl = callPackage ../tools/misc/hdaps-gl { }; + hddtemp = callPackage ../tools/misc/hddtemp { }; hdf4 = callPackage ../tools/misc/hdf4 {