blob: d94ae88a69557d3007fb5a4b0b8e71880f2c067d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Nix shell entry point
#
# SPDX-FileCopyrightText: 2023 Nguyễn Gia Phong
# SPDX-License-Identifier: AGPL-3.0-or-later
with import <nixpkgs> { };
let
grep-2_6 = fetchurl {
url = "mirror://gnu/grep/grep-2.6.tar.xz";
hash = "sha256-YsNien9DBt1gBAED27fZ8SIOSlTFV9ndDEwy9t1itRE=";
};
grep-2_12 = fetchurl {
url = "mirror://gnu/grep/grep-2.12.tar.xz";
hash = "sha256-Tc4KT7g93QEg31HgC1L6dg8u2GddTUwLCuZCumkurWQ=";
};
grep = version: base: commit: hash: callPackage ./grep.nix {
inherit version;
inherit base;
snapshot = fetchurl {
url = "http://git.savannah.gnu.org/cgit/grep.git/snapshot/grep-${commit}.tar.gz";
inherit hash;
};
};
in mkShell {
packages = [
(grep "8f08d8e2.parent" grep-2_6
"c1cb19fe67f4c83f9232087ae03c178905d62b0d"
"sha256-tT3H9pehJ8X6XPf6qyhUvjKspQZXvCd2I4uQQuabOn8=")
(grep "8f08d8e2" grep-2_6
"8f08d8e282bf3d4917e94135e67ba17d738313ce"
"sha256-xQO/d/nTk/q/7Sq6m+exZX7jwYzqbhcKirw9tqC7+zI=")
(grep "55cf7b6a.parent" grep-2_12
"a2e0193455e620f6bad1005500da418d9eba2ae6"
"sha256-Q1Xye4qHdWOlZSJ+S+T9Cy/71OLN+WE97Va84BFoV/Q=")
(grep "55cf7b6a" grep-2_12
"55cf7b6a1905320c36702a476b09ebb29a2934d3"
"sha256-uUHEG4bDDNFiVgj/1mIkttp1B7tlZ1HOWJGPEfbCErU=")
];
}
|