db: use pname and version instead of name

This commit is contained in:
Nick Cao 2021-12-25 13:22:05 +08:00 committed by Jonathan Ringer
parent 9c7bea23cb
commit 9e0c1bce40

View file

@ -11,10 +11,11 @@
}:
stdenv.mkDerivation (rec {
name = "db-${version}";
pname = "db";
inherit version;
src = fetchurl {
url = "https://download.oracle.com/berkeley-db/${name}.tar.gz";
url = "https://download.oracle.com/berkeley-db/${pname}-${version}.tar.gz";
sha256 = sha256;
};