summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-10-28 17:27:09 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-11-03 09:02:50 -0300
commite8041600e61e95fb533260faed0f3cf43a9c2daf (patch)
tree058e13d6abb241ec3c7464684af28de56d0d993d /pkgs/development/tools/build-managers
parentd50b41533212f8f65c4fd2522c93b414b935a51d (diff)
downloadnixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar.gz
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar.bz2
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar.lz
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar.xz
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.tar.zst
nixpkgs-e8041600e61e95fb533260faed0f3cf43a9c2daf.zip
scons_4_1_0: detach from sconsPackages
This is probably a legacy release, since I have found no other package using it.
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r--pkgs/development/tools/build-managers/scons/4.1.0.nix50
-rw-r--r--pkgs/development/tools/build-managers/scons/default.nix4
2 files changed, 50 insertions, 4 deletions
diff --git a/pkgs/development/tools/build-managers/scons/4.1.0.nix b/pkgs/development/tools/build-managers/scons/4.1.0.nix
new file mode 100644
index 00000000000..65499280c2c
--- /dev/null
+++ b/pkgs/development/tools/build-managers/scons/4.1.0.nix
@@ -0,0 +1,50 @@
+{ lib, fetchurl, python3 }:
+
+let
+  pname = "scons";
+  version = "4.1.0";
+  src = fetchurl {
+    url = "mirror://sourceforge/scons/scons-${version}.tar.gz";
+    hash = "sha256-ctKNdi4hJnh/Fz49WeCJI5+LL06e8xFNV/ELEgaYXYU=";
+  };
+in
+python3.pkgs.buildPythonApplication {
+  inherit pname version src;
+
+  postPatch = ''
+    substituteInPlace setup.cfg \
+      --replace "build/dist" "dist" \
+      --replace "build/doc/man/" ""
+  '';
+
+  postInstall = ''
+    mkdir -p "$out/share/man/man1"
+    mv "$out/"*.1 "$out/share/man/man1/"
+  '';
+
+  setupHook = ./setup-hook.sh;
+
+  # The release tarballs don't contain any tests (runtest.py and test/*):
+  doCheck = false;
+
+  passthru = {
+    # expose the used python version so tools using this (and extensing scos
+    # with other python modules) can use the exact same python version.
+    inherit python3;
+    python = python3;
+  };
+
+  meta = {
+    description = "An improved, cross-platform substitute for Make";
+    longDescription = ''
+      SCons is an Open Source software construction tool. Think of SCons as an
+      improved, cross-platform substitute for the classic Make utility with
+      integrated functionality similar to autoconf/automake and compiler caches
+      such as ccache. In short, SCons is an easier, more reliable and faster way
+      to build software.
+    '';
+    homepage = "https://scons.org/";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ AndersonTorres ];
+  };
+}
diff --git a/pkgs/development/tools/build-managers/scons/default.nix b/pkgs/development/tools/build-managers/scons/default.nix
index 7bfc392e3e2..1c4f225f3e7 100644
--- a/pkgs/development/tools/build-managers/scons/default.nix
+++ b/pkgs/development/tools/build-managers/scons/default.nix
@@ -5,10 +5,6 @@ let
     python = python3;
   };
 in {
-  scons_4_1_0 = mkScons {
-    version = "4.1.0";
-    sha256 = "11axk03142ziax6i3wwy9qpqp7r3i7h5jg9y2xzph9i15rv8vlkj";
-  };
   scons_latest = mkScons {
     version = "4.5.2";
     sha256 = "sha256-ziaqyV01CnmkGSGWsL6sPLJPTMq84BI+so0zcPV28HI=";