From 124782c1745c4dbfd3dc84f5e50e0214899e39f7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 26 Sep 2020 14:44:34 -0400 Subject: nixify step --- nixDevEnv/overlays/dmdVersion.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nixDevEnv/overlays/dmdVersion.nix (limited to 'nixDevEnv/overlays/dmdVersion.nix') diff --git a/nixDevEnv/overlays/dmdVersion.nix b/nixDevEnv/overlays/dmdVersion.nix new file mode 100644 index 0000000..51e1f67 --- /dev/null +++ b/nixDevEnv/overlays/dmdVersion.nix @@ -0,0 +1,17 @@ +self: super: rec { + version = "2.094.0"; + sha256 = "0xhm8m46ahfx3hcibi3vws02zaplny3226f3x8cd8584gzfqyzxp"; + year = "2020"; + dmd = super.dmd.overrideAttrs(oldAttrs: rec { + inherit year version sha256; + pname = oldAttrs.pname; + name = "${pname}-${version}"; + src = super.fetchurl { + url = "http://downloads.dlang.org/releases/${year}/dmd.${version}.linux.tar.xz"; + sha256 = sha256; + }; + # postUnpack = '' + # patchShebangs . + # ''; + }); +} -- cgit v1.2.3