blob: 3dd09ef0e03db59b904863b1035ec130ce70d0da (
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
|
# 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_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 "55cf7b6a.parent" grep-2_12
"a2e0193455e620f6bad1005500da418d9eba2ae6"
"sha256-Q1Xye4qHdWOlZSJ+S+T9Cy/71OLN+WE97Va84BFoV/Q=")
(grep "55cf7b6a" grep-2_12
"55cf7b6a1905320c36702a476b09ebb29a2934d3"
"sha256-uUHEG4bDDNFiVgj/1mIkttp1B7tlZ1HOWJGPEfbCErU=")
];
}
|