about summary refs log tree commit diff
path: root/pkgs/profpatsch/youtube2audiopodcast
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-12-14 23:41:34 +0100
committerProfpatsch <mail@profpatsch.de>2019-12-14 23:41:34 +0100
commitd6752d574e67c8a091b04b6c98bb7b2957be13b3 (patch)
tree1f5191f0123910a93795c4593489fff534ce3cec /pkgs/profpatsch/youtube2audiopodcast
parent159ff74c75a1f31dcb183568efb21bf6d6f07a73 (diff)
pkgs/profpatsch: move `writeHaskellInterpret` upwards
Diffstat (limited to 'pkgs/profpatsch/youtube2audiopodcast')
-rw-r--r--pkgs/profpatsch/youtube2audiopodcast/default.nix12
1 files changed, 1 insertions, 11 deletions
diff --git a/pkgs/profpatsch/youtube2audiopodcast/default.nix b/pkgs/profpatsch/youtube2audiopodcast/default.nix
index f0c9189d..6f3f85ec 100644
--- a/pkgs/profpatsch/youtube2audiopodcast/default.nix
+++ b/pkgs/profpatsch/youtube2audiopodcast/default.nix
@@ -1,4 +1,4 @@
-{ pkgs, lib, writeExecline, getBins, runInEmptyEnv, sandbox }:
+{ pkgs, lib, writeExecline, writeHaskellInterpret, getBins, runInEmptyEnv, sandbox }:
 
 let
   bins = getBins pkgs.hello [ "hello" ]
@@ -36,16 +36,6 @@ let
       "https://www.youtube.com/playlist?list=\${1}"
   ];
 
-  writeHaskellInterpret = nameOrPath: { withPackages ? lib.const [] }: content:
-    let ghc = pkgs.haskellPackages.ghcWithPackages withPackages; in
-    pkgs.writers.makeScriptWriter {
-      interpreter = "${ghc}/bin/runhaskell";
-      check = pkgs.writers.writeDash "ghc-typecheck" ''
-        ln -s "$1" ./Main.hs
-        ${ghc}/bin/ghc -fno-code -Wall ./Main.hs
-      '';
-    } nameOrPath content;
-
   printFeed = writeHaskellInterpret "print-feed" {
     withPackages = hps: [ hps.feed hps.aeson ];
   } ./Main.hs;