aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/flrn
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 01:35:06 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 02:11:48 +0200
commit1a64deeb894dc95e2645a75771732c6cc53a79ad (patch)
tree1b9df4838f894577a09b9b260151756272efeb53 /flakes/mypackages/pkgs/flrn
parentfa25ffd4583cc362075cd5e1b4130f33306103f0 (diff)
downloadNix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository
Diffstat (limited to 'flakes/mypackages/pkgs/flrn')
-rw-r--r--flakes/mypackages/pkgs/flrn/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/flrn/default.nix b/flakes/mypackages/pkgs/flrn/default.nix
new file mode 100644
index 0000000..088654c
--- /dev/null
+++ b/flakes/mypackages/pkgs/flrn/default.nix
@@ -0,0 +1,22 @@
1{ stdenv, fetchFromGitHub, libetpan, openssl, autoconf, groff, slang, yacc }:
2stdenv.mkDerivation (rec {
3 version = "860d642-master";
4 pname = "flrn";
5 src = fetchFromGitHub {
6 owner = "Cigaes";
7 repo = "flrn";
8 rev = "860d642bd6389a209c8b697bd044f78d23406509";
9 sha256 = "0sqlxxpy1xg7cb2hbxcr0al46nyr6jjnns4b5i8w04z5sypa9r5c";
10 fetchSubmodules = true;
11 };
12 buildInputs = [ libetpan openssl autoconf groff slang yacc ];
13 preConfigure = ''
14 sed -i -e "s/test -e configure/false/" configure.in
15 autoconf
16 sed -i -e '/define CHECK_MAIL/d' src/flrn_config.h
17 sed -i -e '/DEFAULT_DIR_FILE/s@".flrn"@".config/flrn"@' src/flrn_config.h
18 sed -i -e '/DEFAULT_CONFIG_FILE/s@".flrnrc"@"flrnrc"@' src/flrn_config.h
19 sed -i -e '/DEFAULT_FLNEWS_FILE/s@".flnewsrc"@"flnewsrc"@' src/flrn_config.h
20 sed -i -e '/flrn_char chaine/s@18@20@' src/flrn_command.c
21 '';
22})