···143144sub="auto?trusted=1"
14500000000000000000146# Build the system configuration in the target filesystem.
147if [[ -z $system ]]; then
148 outLink="$tmpdir/system"
···166nix-env --store "$mountPoint" "${extraBuildFlags[@]}" \
167 --extra-substituters "$sub" \
168 -p "$mountPoint"/nix/var/nix/profiles/system --set "$system" "${verbosity[@]}"
169-170-# Copy the NixOS/Nixpkgs sources to the target as the initial contents
171-# of the NixOS channel.
172-if [[ -z $noChannelCopy ]]; then
173- if [[ -z $channelPath ]]; then
174- channelPath="$(nix-env -p /nix/var/nix/profiles/per-user/root/channels -q nixos --no-name --out-path 2>/dev/null || echo -n "")"
175- fi
176- if [[ -n $channelPath ]]; then
177- echo "copying channel..."
178- mkdir -p "$mountPoint"/nix/var/nix/profiles/per-user/root
179- nix-env --store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" \
180- -p "$mountPoint"/nix/var/nix/profiles/per-user/root/channels --set "$channelPath" --quiet \
181- "${verbosity[@]}"
182- install -m 0700 -d "$mountPoint"/root/.nix-defexpr
183- ln -sfn /nix/var/nix/profiles/per-user/root/channels "$mountPoint"/root/.nix-defexpr/channels
184- fi
185-fi
186187# Mark the target as a NixOS installation, otherwise switch-to-configuration will chicken out.
188mkdir -m 0755 -p "$mountPoint/etc"
···143144sub="auto?trusted=1"
145146+# Copy the NixOS/Nixpkgs sources to the target as the initial contents
147+# of the NixOS channel.
148+if [[ -z $noChannelCopy ]]; then
149+ if [[ -z $channelPath ]]; then
150+ channelPath="$(nix-env -p /nix/var/nix/profiles/per-user/root/channels -q nixos --no-name --out-path 2>/dev/null || echo -n "")"
151+ fi
152+ if [[ -n $channelPath ]]; then
153+ echo "copying channel..."
154+ mkdir -p "$mountPoint"/nix/var/nix/profiles/per-user/root
155+ nix-env --store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" \
156+ -p "$mountPoint"/nix/var/nix/profiles/per-user/root/channels --set "$channelPath" --quiet \
157+ "${verbosity[@]}"
158+ install -m 0700 -d "$mountPoint"/root/.nix-defexpr
159+ ln -sfn /nix/var/nix/profiles/per-user/root/channels "$mountPoint"/root/.nix-defexpr/channels
160+ fi
161+fi
162+163# Build the system configuration in the target filesystem.
164if [[ -z $system ]]; then
165 outLink="$tmpdir/system"
···183nix-env --store "$mountPoint" "${extraBuildFlags[@]}" \
184 --extra-substituters "$sub" \
185 -p "$mountPoint"/nix/var/nix/profiles/system --set "$system" "${verbosity[@]}"
00000000000000000186187# Mark the target as a NixOS installation, otherwise switch-to-configuration will chicken out.
188mkdir -m 0755 -p "$mountPoint/etc"
+29
pkgs/applications/editors/em/default.nix
···00000000000000000000000000000
···1+{ lib
2+, stdenv
3+, fetchurl
4+}:
5+6+stdenv.mkDerivation rec {
7+ pname = "em";
8+ version = "1.0.0";
9+10+ src = fetchurl {
11+ url = "http://pgas.freeshell.org/C/em/${pname}-${version}.tar.gz";
12+ hash = "sha256-ijMBkl7U1f9MTXgli9kUFB8ttMG6TMQnxfDMP9AblTQ=";
13+ };
14+15+ meta = with lib; {
16+ homepage = "http://pgas.freeshell.org/C/em/";
17+ description = "Editor for Mortals";
18+ longDescription = ''
19+ Em is a QMC variant of the standard Unix text editor - ed. It includes all
20+ of ed, so the documentation for ed is fully applicable to em. Em also has
21+ a number of new commands and facilities designed to improve its
22+ interaction and increase its usefulness to users at fast vdu terminals
23+ (such as the ITT's at QMC).
24+ '';
25+ license = licenses.publicDomain;
26+ maintainers = with maintainers; [ AndersonTorres ];
27+ platforms = platforms.unix;
28+ };
29+}
···2, buildPythonPackage
3, fetchPypi
4, django
05}:
67buildPythonPackage rec {
8- version = "1.1.0";
9- pname = "filebrowser_safe";
0001011 src = fetchPypi {
12- inherit pname version;
13- sha256 = "14b6e0af9697f1d0f08508cc88bc8459273cd6453636cebe8504dccc80e926e4";
014 };
1516- buildInputs = [ django ];
001718 # There is no test embedded
19 doCheck = false;
···24 filebrowser_safe was created to provide a snapshot of the
25 FileBrowser asset manager for Django, to be referenced as a
26 dependency for the Mezzanine CMS for Django.
27-28- At the time of filebrowser_safe's creation, FileBrowser was
29- incorrectly packaged on PyPI, and had also dropped compatibility
30- with Django 1.1 - filebrowser_safe was therefore created to
31- address these specific issues.
32 '';
33 homepage = "https://github.com/stephenmcd/filebrowser-safe";
34 downloadPage = "https://pypi.python.org/pypi/filebrowser_safe/";
35- license = licenses.free;
36 maintainers = with maintainers; [ prikhi ];
37 platforms = platforms.unix;
38 };
···2, buildPythonPackage
3, fetchPypi
4, django
5+, pythonOlder
6}:
78buildPythonPackage rec {
9+ pname = "filebrowser-safe";
10+ version = "1.1.1";
11+ format = "setuptools";
12+13+ disabled = pythonOlder "3.6";
1415 src = fetchPypi {
16+ pname = "filebrowser_safe";
17+ inherit version;
18+ sha256 = "499c5dbd9e112dfc436cae7713b2fb664a59015021f6c9d131e3b7980aeb5c94";
19 };
2021+ buildInputs = [
22+ django
23+ ];
2425 # There is no test embedded
26 doCheck = false;
···31 filebrowser_safe was created to provide a snapshot of the
32 FileBrowser asset manager for Django, to be referenced as a
33 dependency for the Mezzanine CMS for Django.
0000034 '';
35 homepage = "https://github.com/stephenmcd/filebrowser-safe";
36 downloadPage = "https://pypi.python.org/pypi/filebrowser_safe/";
37+ license = licenses.bsd3;
38 maintainers = with maintainers; [ prikhi ];
39 platforms = platforms.unix;
40 };