summary refs log tree commit diff
path: root/pkgs/development/tools/yarn2nix-moretea
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-01 17:34:28 +0100
committerlassulus <lassulus@lassul.us>2021-01-01 21:30:49 +0100
commit79723fcfb86ec858b9bc70ad8656ccf16b3121ed (patch)
treec25dfff1f96f1c8c98fdfd6ef489ca6db35ac5a4 /pkgs/development/tools/yarn2nix-moretea
parent23d75e6be0ea70a8882230ef05274c45fa7a5720 (diff)
downloadnixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar.gz
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar.bz2
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar.lz
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar.xz
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.tar.zst
nixpkgs-79723fcfb86ec858b9bc70ad8656ccf16b3121ed.zip
yarn2nix: remove deprecated yarn2nix fetch script
Diffstat (limited to 'pkgs/development/tools/yarn2nix-moretea')
-rw-r--r--pkgs/development/tools/yarn2nix-moretea/fetch-source.nix10
-rwxr-xr-xpkgs/development/tools/yarn2nix-moretea/generate.sh40
2 files changed, 0 insertions, 50 deletions
diff --git a/pkgs/development/tools/yarn2nix-moretea/fetch-source.nix b/pkgs/development/tools/yarn2nix-moretea/fetch-source.nix
deleted file mode 100644
index fc9b149887a..00000000000
--- a/pkgs/development/tools/yarn2nix-moretea/fetch-source.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{ pkgs ? (import ../../../../. {})
-, fetchFromGitHub ? pkgs.fetchFromGitHub
-}:
-
-fetchFromGitHub {
-  owner  = "moretea";
-  repo   = "yarn2nix";
-  rev    = "9e7279edde2a4e0f5ec04c53f5cd64440a27a1ae";
-  sha256 = "0zz2lrwn3y3rb8gzaiwxgz02dvy3s552zc70zvfqc0zh5dhydgn7";
-}
diff --git a/pkgs/development/tools/yarn2nix-moretea/generate.sh b/pkgs/development/tools/yarn2nix-moretea/generate.sh
deleted file mode 100755
index bfe1cda5e71..00000000000
--- a/pkgs/development/tools/yarn2nix-moretea/generate.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env bash
-
-###
-### This script runs 'nix-build' with ./fetch-source.nix and copies a subset
-### of the resulting store path into the current working directory.
-###
-### To disable running chmod, you may set the environment
-### variable "FIX_RIGHTS" to "no".
-###
-
-set -euo pipefail
-
-# 'nix-build' command
-NIX_BUILD_BIN="${NIX_BUILD_BIN:-"/usr/bin/env nix-build"}"
-
-# where to place the yarn2nix source
-TARGET_DIR="${TARGET_DIR:-"./yarn2nix"}"
-
-# whether to run 'chmod -R u=rwX,g=rX,o-rwx' on copied files in $TARGET_DIR
-FIX_RIGHTS="${FIX_RIGHTS:-"yes"}"
-
-fetch_git_source() {
-  [[ -f ./fetch-source.nix ]] && ret="$($NIX_BUILD_BIN --no-out-link ./fetch-source.nix)" && ec="$?" || ec="$?"
-  if [[ "$ec" == "0" ]]; then
-    echo "$ret"
-  else
-    printf "error: failed at 'fetch_git_source()' with '%s'" "$ret"
-  fi
-}
-
-result="$(fetch_git_source)"
-if [[ "$result" == "/nix/store"* ]]; then
-  mkdir -p "$TARGET_DIR"
-  cp -Rv \
-    "${result}/"{bin,internal,lib,nix,default.nix,package.json,yarn.nix,yarn.lock,LICENSE.txt} \
-    "$TARGET_DIR"
-  [[ "$FIX_RIGHTS" = "yes" ]] \
-    && chmod -v "u=rwX,g=rX,o-rwx" -R \
-    "$TARGET_DIR/"{bin,internal,lib,nix,default.nix,package.json,yarn.nix,yarn.lock,LICENSE.txt}
-fi