From e166eaa103d38678eb8ff55acad7a9e11abdc4aa Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 8 May 2021 21:04:41 +0200 Subject: [PATCH] package xfer9860 --- default.nix | 2 ++ pkgs/xfer9860/default.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/xfer9860/default.nix diff --git a/default.nix b/default.nix index cec1c8e..7ee3821 100644 --- a/default.nix +++ b/default.nix @@ -21,6 +21,8 @@ rec { modules = import ./modules; # NixOS modules overlays = import ./overlays; # nixpkgs overlays + xfer9860 = pkgs.callPackage ./pkgs/xfer9860 { }; + colors = pkgs.callPackage ./pkgs/colors { }; eplot = pkgs.callPackage ./pkgs/eplot { }; diff --git a/pkgs/xfer9860/default.nix b/pkgs/xfer9860/default.nix new file mode 100644 index 0000000..1ba1d14 --- /dev/null +++ b/pkgs/xfer9860/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, sconsPackages, libusb1, pkg-config }: + +stdenv.mkDerivation { + pname = "xfer9860"; + version = "unstable-2019-01-28"; + + src = fetchFromGitHub { + owner = "sanjay900"; + repo = "xfer9860"; + rev = "b869779e5ac43ba6fcb549020ccf84f686813ebc"; + sha256 = "19wybkvv5rxi5hi831gx7zdfd4d9bkqwb2f1hn1d3czycrk80kk0"; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libusb1 ]; + + buildPhase = '' + mkdir -p $out/bin + gcc src/*.c -o $out/bin/xfer9860 $(pkg-config --cflags --libs libusb-1.0) + ''; + + installPhase = "true"; + + meta = with lib; { + broken = false; + homepage = "https://github.com/sanjay900/xfer9860"; + description = "open source equivalent of FA-124 by Casio"; + license = licenses.gpl2Only; + platforms = platforms.linux; + }; +}