aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixDevEnv
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-09-26 14:44:34 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-10-19 13:41:43 -0400
commit124782c1745c4dbfd3dc84f5e50e0214899e39f7 (patch)
tree7258689c84e5cb4e199685cafb0533374962f5f0 /nixDevEnv
parentshell.nix (diff)
nixify step
Diffstat (limited to 'nixDevEnv')
-rw-r--r--nixDevEnv/overlays/dmdVersion.nix17
-rw-r--r--nixDevEnv/overlays/ldcVersion.nix16
-rw-r--r--nixDevEnv/shells/dmd.nix10
-rw-r--r--nixDevEnv/shells/ldc.nix10
4 files changed, 53 insertions, 0 deletions
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 .
+ # '';
+ });
+}
diff --git a/nixDevEnv/overlays/ldcVersion.nix b/nixDevEnv/overlays/ldcVersion.nix
new file mode 100644
index 0000000..c241a1f
--- /dev/null
+++ b/nixDevEnv/overlays/ldcVersion.nix
@@ -0,0 +1,16 @@
+self: super: rec {
+ version = "1.23.0";
+ sha256 = "1fdgj222x29as466vdxy9c0m82zzlsb7vnvvh89n2riszcrx463d";
+ ldc = super.ldc.overrideAttrs(oldAttrs: rec {
+ inherit version sha256;
+ pname = oldAttrs.pname;
+ name = "${pname}-${version}";
+ src = super.fetchurl {
+ url = "https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz";
+ sha256 = sha256;
+ };
+ postUnpack = ''
+ patchShebangs .
+ '';
+ });
+}
diff --git a/nixDevEnv/shells/dmd.nix b/nixDevEnv/shells/dmd.nix
new file mode 100644
index 0000000..f3d126c
--- /dev/null
+++ b/nixDevEnv/shells/dmd.nix
@@ -0,0 +1,10 @@
+{ pkgs ? import <nixpkgs> { overlays = [ (import ../overlays/dmdVersion.nix) ]; } }:
+ pkgs.mkShell {
+ buildInputs = with pkgs; [
+ dub
+ ninja
+ dmd
+ sqlite
+ validatePkgConfig
+ ];
+}
diff --git a/nixDevEnv/shells/ldc.nix b/nixDevEnv/shells/ldc.nix
new file mode 100644
index 0000000..1900112
--- /dev/null
+++ b/nixDevEnv/shells/ldc.nix
@@ -0,0 +1,10 @@
+{ pkgs ? import <nixpkgs> { overlays = [ (import ../overlays/ldcVersion.nix) ]; } }:
+ pkgs.mkShell {
+ buildInputs = with pkgs; [
+ dub
+ ninja
+ ldc
+ sqlite
+ validatePkgConfig
+ ];
+}