aboutsummaryrefslogtreecommitdiff
path: root/lib/google.nix
blob: 06b80b3a56e5bd0fdefae424c8082bcd33bb856b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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
''