diff options
author | Artturin <Artturin@artturin.com> | 2021-10-25 13:45:47 +0300 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-03-11 21:39:29 +0000 |
commit | 23e999fd9b98ba85a931bc8fe7f113fd235fb958 (patch) | |
tree | 5192a8ee7f73b3c609ed12e40c27bc4b2e67ae13 | |
parent | dd6e94f2c1ae61633c69c6416c9da9d9853015ca (diff) | |
download | nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar.gz nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar.bz2 nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar.lz nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar.xz nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.tar.zst nixpkgs-23e999fd9b98ba85a931bc8fe7f113fd235fb958.zip |
fetchpatch: add decode test
-rw-r--r-- | pkgs/build-support/fetchpatch/tests.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchpatch/tests.nix b/pkgs/build-support/fetchpatch/tests.nix index 38bbb8ba69d..0a27f1bc70e 100644 --- a/pkgs/build-support/fetchpatch/tests.nix +++ b/pkgs/build-support/fetchpatch/tests.nix @@ -25,4 +25,11 @@ in revert = true; sha256 = if isFetchpatch2 then "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM=" else "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM="; }; + + decode = testers.invalidateFetcherByDrvHash fetchpatch { + name = "gcc.patch"; + url = "https://chromium.googlesource.com/aosp/platform/external/libchrome/+/f37ae3b1a873d74182a2ac31d96742ead9c1f523^!?format=TEXT"; + decode = "base64 -d"; + sha256 = if isFetchpatch2 then "sha256-oMvPlmzE51ArI+EvFxONXkqmNee39106/O1ikG0Bdso=" else "sha256-SJHk8XrutqAyoIdORlhCpBCN626P+uzed7mjKz5eQYY="; + }; } |