summary refs log tree commit diff
path: root/pkgs/os-specific/linux/batman-adv/alfred.nix
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2020-01-01 20:26:23 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2020-01-01 20:29:35 +0100
commit8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374 (patch)
treee5be5a12e8d53e37d0b1e8184b216b21853da56a /pkgs/os-specific/linux/batman-adv/alfred.nix
parentf197a51583ecb5f021fa60b86cc120bdae2769d7 (diff)
downloadnixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar.gz
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar.bz2
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar.lz
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar.xz
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.tar.zst
nixpkgs-8b3427ad87c7c3da974dfc9f43fbfcd5c6c19374.zip
batman-adv: refactor
Diffstat (limited to 'pkgs/os-specific/linux/batman-adv/alfred.nix')
-rw-r--r--pkgs/os-specific/linux/batman-adv/alfred.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/batman-adv/alfred.nix b/pkgs/os-specific/linux/batman-adv/alfred.nix
index eccb3e71660..fa2be46688c 100644
--- a/pkgs/os-specific/linux/batman-adv/alfred.nix
+++ b/pkgs/os-specific/linux/batman-adv/alfred.nix
@@ -1,14 +1,14 @@
 { stdenv, fetchurl, pkgconfig, gpsd, libcap, libnl }:
 
-let
-  ver = "2019.5";
-in
+let cfg = import ./version.nix; in
+
 stdenv.mkDerivation rec {
-  name = "alfred-${ver}";
+  pname = "alfred";
+  inherit (cfg) version;
 
   src = fetchurl {
-    url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${ver}/${name}.tar.gz";
-    sha256 = "09npizg89ks1wm19l5xz0pq1ljpsbwy030xnprqnd0p53976wywa";
+    url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${version}/${pname}-${version}.tar.gz";
+    sha256 = cfg.sha256.${pname};
   };
 
   nativeBuildInputs = [ pkgconfig ];