···143143144144sub="auto?trusted=1"
145145146146+# Copy the NixOS/Nixpkgs sources to the target as the initial contents
147147+# of the NixOS channel.
148148+if [[ -z $noChannelCopy ]]; then
149149+ if [[ -z $channelPath ]]; then
150150+ channelPath="$(nix-env -p /nix/var/nix/profiles/per-user/root/channels -q nixos --no-name --out-path 2>/dev/null || echo -n "")"
151151+ fi
152152+ if [[ -n $channelPath ]]; then
153153+ echo "copying channel..."
154154+ mkdir -p "$mountPoint"/nix/var/nix/profiles/per-user/root
155155+ nix-env --store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" \
156156+ -p "$mountPoint"/nix/var/nix/profiles/per-user/root/channels --set "$channelPath" --quiet \
157157+ "${verbosity[@]}"
158158+ install -m 0700 -d "$mountPoint"/root/.nix-defexpr
159159+ ln -sfn /nix/var/nix/profiles/per-user/root/channels "$mountPoint"/root/.nix-defexpr/channels
160160+ fi
161161+fi
162162+146163# Build the system configuration in the target filesystem.
147164if [[ -z $system ]]; then
148165 outLink="$tmpdir/system"
···166183nix-env --store "$mountPoint" "${extraBuildFlags[@]}" \
167184 --extra-substituters "$sub" \
168185 -p "$mountPoint"/nix/var/nix/profiles/system --set "$system" "${verbosity[@]}"
169169-170170-# Copy the NixOS/Nixpkgs sources to the target as the initial contents
171171-# of the NixOS channel.
172172-if [[ -z $noChannelCopy ]]; then
173173- if [[ -z $channelPath ]]; then
174174- channelPath="$(nix-env -p /nix/var/nix/profiles/per-user/root/channels -q nixos --no-name --out-path 2>/dev/null || echo -n "")"
175175- fi
176176- if [[ -n $channelPath ]]; then
177177- echo "copying channel..."
178178- mkdir -p "$mountPoint"/nix/var/nix/profiles/per-user/root
179179- nix-env --store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" \
180180- -p "$mountPoint"/nix/var/nix/profiles/per-user/root/channels --set "$channelPath" --quiet \
181181- "${verbosity[@]}"
182182- install -m 0700 -d "$mountPoint"/root/.nix-defexpr
183183- ln -sfn /nix/var/nix/profiles/per-user/root/channels "$mountPoint"/root/.nix-defexpr/channels
184184- fi
185185-fi
186186187187# Mark the target as a NixOS installation, otherwise switch-to-configuration will chicken out.
188188mkdir -m 0755 -p "$mountPoint/etc"
+29
pkgs/applications/editors/em/default.nix
···11+{ lib
22+, stdenv
33+, fetchurl
44+}:
55+66+stdenv.mkDerivation rec {
77+ pname = "em";
88+ version = "1.0.0";
99+1010+ src = fetchurl {
1111+ url = "http://pgas.freeshell.org/C/em/${pname}-${version}.tar.gz";
1212+ hash = "sha256-ijMBkl7U1f9MTXgli9kUFB8ttMG6TMQnxfDMP9AblTQ=";
1313+ };
1414+1515+ meta = with lib; {
1616+ homepage = "http://pgas.freeshell.org/C/em/";
1717+ description = "Editor for Mortals";
1818+ longDescription = ''
1919+ Em is a QMC variant of the standard Unix text editor - ed. It includes all
2020+ of ed, so the documentation for ed is fully applicable to em. Em also has
2121+ a number of new commands and facilities designed to improve its
2222+ interaction and increase its usefulness to users at fast vdu terminals
2323+ (such as the ITT's at QMC).
2424+ '';
2525+ license = licenses.publicDomain;
2626+ maintainers = with maintainers; [ AndersonTorres ];
2727+ platforms = platforms.unix;
2828+ };
2929+}
···22, buildPythonPackage
33, fetchPypi
44, django
55+, pythonOlder
56}:
6778buildPythonPackage rec {
88- version = "1.1.0";
99- pname = "filebrowser_safe";
99+ pname = "filebrowser-safe";
1010+ version = "1.1.1";
1111+ format = "setuptools";
1212+1313+ disabled = pythonOlder "3.6";
10141115 src = fetchPypi {
1212- inherit pname version;
1313- sha256 = "14b6e0af9697f1d0f08508cc88bc8459273cd6453636cebe8504dccc80e926e4";
1616+ pname = "filebrowser_safe";
1717+ inherit version;
1818+ sha256 = "499c5dbd9e112dfc436cae7713b2fb664a59015021f6c9d131e3b7980aeb5c94";
1419 };
15201616- buildInputs = [ django ];
2121+ buildInputs = [
2222+ django
2323+ ];
17241825 # There is no test embedded
1926 doCheck = false;
···2431 filebrowser_safe was created to provide a snapshot of the
2532 FileBrowser asset manager for Django, to be referenced as a
2633 dependency for the Mezzanine CMS for Django.
2727-2828- At the time of filebrowser_safe's creation, FileBrowser was
2929- incorrectly packaged on PyPI, and had also dropped compatibility
3030- with Django 1.1 - filebrowser_safe was therefore created to
3131- address these specific issues.
3234 '';
3335 homepage = "https://github.com/stephenmcd/filebrowser-safe";
3436 downloadPage = "https://pypi.python.org/pypi/filebrowser_safe/";
3535- license = licenses.free;
3737+ license = licenses.bsd3;
3638 maintainers = with maintainers; [ prikhi ];
3739 platforms = platforms.unix;
3840 };