aboutsummaryrefslogtreecommitdiff
path: root/lib/google.nix
blob: 354b5c592cf5a6056e332058170b54e9e95191f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ bionix }:

{ url, sha256 }:

with bionix.pkgs;

let
  gdown = fetchurl {
    url =
      "https://raw.githubusercontent.com/circulosmeos/gdown.pl/master/gdown.pl";
    sha256 = "1pw3vg70bgf33akbbphpr6zn3jndv0khmsa3k0m877hgzg1v52qv";
  };
in runCommand "gdown" {
  nativeBuildInputs = [ perl wget ];
  outputHashAlgo = "sha256";
  outputHash = sha256;
  outputHashMode = "flat";
} ''
  perl ${gdown} "${url}" $out
''