summary refs log tree commit diff
path: root/pkgs/development/libraries/libgpiod
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-08-03 11:06:34 -0700
committerJonathan Ringer <jonringer117@gmail.com>2019-08-03 12:02:03 -0700
commit3eda38b87ff74f218605511d0d7a7bcbe49e60de (patch)
tree7ef04c7ab4e6fed53871d0d31f65ecabf169cf04 /pkgs/development/libraries/libgpiod
parent4e8a8a13ef6f730b7f785483a1ef79512a20a6fe (diff)
downloadnixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar.gz
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar.bz2
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar.lz
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar.xz
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.tar.zst
nixpkgs-3eda38b87ff74f218605511d0d7a7bcbe49e60de.zip
libgpiod: unstable-2018-10-07 -> 1.4
Diffstat (limited to 'pkgs/development/libraries/libgpiod')
-rw-r--r--pkgs/development/libraries/libgpiod/default.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libgpiod/default.nix b/pkgs/development/libraries/libgpiod/default.nix
index c498ef3460a..5eac024f831 100644
--- a/pkgs/development/libraries/libgpiod/default.nix
+++ b/pkgs/development/libraries/libgpiod/default.nix
@@ -1,13 +1,12 @@
-{ stdenv, fetchgit, autoreconfHook, autoconf-archive, pkgconfig, kmod, enable-tools ? true }:
+{ stdenv, fetchurl, autoreconfHook, autoconf-archive, pkgconfig, kmod, enable-tools ? true }:
 
 stdenv.mkDerivation rec {
-  name = "libgpiod-unstable-${version}";
-  version = "2018-10-07";
+  pname = "libgpiod";
+  version = "1.4";
 
-  src = fetchgit {
-    url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git";
-    rev = "4bf402d3a49336eacd33654441d575bd267780b8";
-    sha256 = "01f3jzb133z189sxdiz9qiy65p0bjqhynfllidbpxdr0cxkyyc1d";
+  src = fetchurl {
+    url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-${version}.tar.gz";
+    sha256 = "17qc2qbrnmaimxx9i3l30831hy890hp9s5a48iapni1dlr1z27p2";
   };
 
   buildInputs = [ kmod ];
@@ -20,7 +19,7 @@ stdenv.mkDerivation rec {
   configureFlags = [
     "--enable-tools=${if enable-tools then "yes" else "no"}"
     "--enable-bindings-cxx"
-    "--prefix=$(out)"
+    "--prefix=${placeholder ''out''}"
   ];
 
   meta = with stdenv.lib; {