summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-11-21 10:53:52 +0100
committerLinnnus <[email protected]>2024-11-22 10:21:36 +0100
commit841b9230932b223adf529ca635b5cfb7d1ec8052 (patch)
tree3d314b724d53d805eaa674bf6eb4301684e81995 /pkgs
parentaa99e1e10c38fc929243893b0b6b4c3e359c7283 (diff)
pkgs/cscript: Bump version, add tests
With linnnus/cscript@45c8dca6 the tests in the Makefile were split up to better work with Nix's checkPhase and installCheckPhase.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/cscript/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/cscript/default.nix b/pkgs/cscript/default.nix
index fa529bc..bfbb58b 100644
--- a/pkgs/cscript/default.nix
+++ b/pkgs/cscript/default.nix
@@ -11,8 +11,8 @@
src = fetchFromGitHub {
owner = "linnnus";
repo = pname;
- rev = "855f35a4e6d5046000a1d9ff7b887ccd7c4a8c91";
- hash = "sha256-d722f3K3QXnPqDVNVGBK+mj6Bl1VNShmJ4WICj0p64s=";
+ rev = "45c8dca682484a6a5873e38d917960ff1f7e971e";
+ hash = "sha256-KhmHd8mQ387aSfXPAm7sJNFXlUKNyKPRITG1JUUjRE4=";
};
# Instead of using the system CC and LLDB (impure), use the most recent LLVM release.
@@ -29,6 +29,11 @@
preInstall = "mkdir -p $out/bin";
makeFlags = ["INSTALL=$(out)/bin"];
+ doCheck = true;
+ doInstallCheck = true;
+ preInstallCheck = ''export PATH="$out/bin:$PATH"''; # Otherwise `/usr/bin/env` can't find `cscript`.
+ installCheckTarget = "installtest";
+
passthru = rec {
# Mimic Python's interpreter attributes.
# See: https://nixos.org/manual/nixpkgs/stable/#attributes-on-interpreters-packages