From a4e95b70f21c685597f7b753394fed78bf35bf40 Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Wed, 30 Dec 2020 13:16:42 +0000 Subject: [PATCH] fdm: modernised syntax --- pkgs/tools/networking/fdm/default.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix index 1c3d69f9cb4..cb5a781f5ef 100644 --- a/pkgs/tools/networking/fdm/default.nix +++ b/pkgs/tools/networking/fdm/default.nix @@ -1,19 +1,13 @@ { stdenv, fetchFromGitHub, autoreconfHook, openssl, tdb, zlib, flex, bison }: -let - - baseName = "fdm"; +stdenv.mkDerivation rec { + pname = "fdm"; version = "2.0"; -in - -stdenv.mkDerivation { - name = "${baseName}-${version}"; - src = fetchFromGitHub { owner = "nicm"; - repo = baseName; - rev = "370b04f165b0bb2989be378bb7e66b14f042d3f9"; + repo = pname; + rev = version; sha256 = "0j2n271ni5wslgjq1f4zgz1nsvqjf895dxy3ij5c904bbp8ckcwq"; };