From afdb8987d4e6e0dbb7c8f2e17a9f0c0118ec5452 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Sun, 21 Feb 2021 20:28:58 +0000 Subject: [PATCH] debug; more dependencies in Nix --- flake.nix | 2 +- test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3c2ae6d..f5102d5 100644 --- a/flake.nix +++ b/flake.nix @@ -8,7 +8,7 @@ let system = "x86_64-linux"; in let nixpkgs = import nixpkgs-git { config = { allowUnfree = true;}; system = system; }; in - let mypackages = with nixpkgs; [ coreutils ]; in + let mypackages = with nixpkgs; [ coreutils python3 ]; in with import nixpkgs-git { system = "x86_64-linux"; }; symlinkJoin { diff --git a/test.py b/test.py index edbc857..619f2ee 100755 --- a/test.py +++ b/test.py @@ -34,5 +34,5 @@ with tempfile.TemporaryDirectory(prefix="test", dir="/tmp") as tempdir: print("test passed") else: print("TEST FAILED: got hash " + repr(h)) - os.system("tar -Jcf- . | xxd", cwd=tempdir) + print(subprocess.check_output("tar -Jcf- . | xxd", cwd=tempdir, shell=True)) exit(1) \ No newline at end of file