This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fetch: use nix/fetchurl.nix instead of curl (#64)

incidentally also adds a little fix to the kernel

+34 -36
+1 -1
packages/busybox/package.nix
··· 21 21 owner = "tombl"; 22 22 repo = "busybox"; 23 23 rev = "refs/heads/master"; 24 - hash = "sha256-cL/QLG0etQ1TxTBRMrKR5VESGPC73CDcoVomInmL8yE="; 24 + hash = "sha256-0dq8WFVXUO8xkpxWTVgZywz2imxy9eq/a9m1ALIRpHM="; 25 25 }; 26 26 path = [ 27 27 clang
+1 -1
packages/compiler-rt/package.nix
··· 19 19 version = "19.1.6"; 20 20 src = fetch.tar { 21 21 url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/llvm-project-${version}.src.tar.xz"; 22 - hash = "sha256-LD4nIjZTSZJtbgW6tZopbTF5Mq0Tenj2gbuPXhtOeUI="; 22 + hash = "sha256-4/eTF62qkZbSz//hyGnXwQC3VAgyvET+DT9EoShh+jQ="; 23 23 }; 24 24 path = [ 25 25 clang
+30 -32
packages/fetch/package.nix
··· 1 1 { 2 2 run, 3 3 lib, 4 - curl, 5 4 }: 6 5 7 - let 8 - mkFetcher = 9 - command: 6 + rec { 7 + file = 10 8 { 11 9 url, 12 10 name ? builtins.baseNameOf url, 13 11 hash ? lib.fakeHash, 14 12 }: 15 - run { 16 - inherit name url; 17 - outputHashMode = "nar"; 18 - outputHashAlgo = "sha256"; 19 - outputHash = hash; 20 - path = [ curl ]; 21 - } command; 22 - in 23 - 24 - rec { 25 - file = mkFetcher '' 26 - curl -L "$url" -o $out 27 - ''; 28 - tar = mkFetcher '' 29 - mkdir $out 30 - case "$url" in 31 - *gz) decompress=-z ;; 32 - *bz2) decompress=-j ;; 33 - *xz) decompress=-J ;; 34 - *lz) decompress=--lzma ;; 35 - *) decompress= ;; 36 - esac 37 - curl -L "$url" | tar -x $decompress -C $out --strip-components=1 38 - ''; 39 - zip = mkFetcher '' 40 - mkdir $out 41 - curl -L "$url" | unzip - -d $out 42 - ''; 13 + import <nix/fetchurl.nix> { 14 + inherit url name hash; 15 + }; 16 + tar = 17 + args: 18 + let 19 + result = file args; 20 + in 21 + run { inherit (result) name; } '' 22 + mkdir $out 23 + case "${result.url}" in 24 + *gz) decompress=-z ;; 25 + *bz2) decompress=-j ;; 26 + *xz) decompress=-J ;; 27 + *lz) decompress=--lzma ;; 28 + *) decompress= ;; 29 + esac 30 + tar -x $decompress -f ${result} -C $out --strip-components=1 31 + ''; 32 + zip = 33 + args: 34 + let 35 + result = file args; 36 + in 37 + run { inherit (result) name; } '' 38 + mkdir $out 39 + unzip -f ${result} -d $out 40 + ''; 43 41 github = 44 42 { 45 43 owner,
+1 -1
packages/linux/package.nix
··· 26 26 owner = "tombl"; 27 27 repo = "linux"; 28 28 rev = "refs/heads/wasm"; 29 - hash = "sha256-FFYZOum0bwUPmoUKW7u2oozUzb2gDwE5Cfwp4GundAg="; 29 + hash = "sha256-F01Q3JUJpWND38KgQ/SONnhNJxeItw8qg8xNsBnjXzU="; 30 30 }; 31 31 path = [ 32 32 bc
+1 -1
packages/musl/package.nix
··· 17 17 owner = "tombl"; 18 18 repo = "musl"; 19 19 rev = "refs/heads/master"; 20 - hash = "sha256-IjDa2VkS8wMnDWPXPDnsqEh8TNgSm7qZ0/F51WqPoUs="; 20 + hash = "sha256-iqTTSWLXv850UNToxCrZbXoxke9M9i/7bjgfCzn/zLs="; 21 21 }; 22 22 path = [ 23 23 clang