├── .github └── README.md ├── .travis.yml └── debian ├── README.Debian ├── changelog ├── clean ├── compat ├── control ├── copyright ├── dirs ├── gbp.conf ├── links ├── nix-daemon.init ├── nix.1 ├── nix.lintian-overrides ├── nix.manpages ├── patches ├── fix-Makefile.config.patch ├── fix-service-file-path.patch ├── series └── trim-nix-profile.patch ├── postinst ├── rules ├── source ├── format └── options ├── tests ├── control ├── nix-daemon-status └── nix-env-and-shell ├── upstream └── signing-key.asc └── watch /.github/README.md: -------------------------------------------------------------------------------- 1 | Debian package of the nix package manager 2 | ========================================= 3 | 4 | **Please note:** This repository is no longer updated. The packaging 5 | effort has been moved to [salsa.debian.org][2]. 6 | 7 | Packaging of the [nix package manager][1] for Debian. Ultimate goal is 8 | to get _nix_ included into Debian. 9 | 10 | [1]: https://nixos.org/nix/ 11 | [2]: https://salsa.debian.org/debian/nix 12 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | language: generic 3 | 4 | env: 5 | - TRAVIS_DEBIAN_DISTRIBUTION=testing 6 | - TRAVIS_DEBIAN_DISTRIBUTION=sid 7 | - TRAVIS_DEBIAN_DISTRIBUTION=cosmic TRAVIS_DEBIAN_DERIVATIVE=ubuntu 8 | 9 | services: 10 | - docker 11 | 12 | script: 13 | - wget -O- https://raw.githubusercontent.com/KaiHa/travis.debian.net/wip/ubuntu-install-issue/script.sh | sh - 14 | 15 | if: 16 | tag IS blank 17 | -------------------------------------------------------------------------------- /debian/README.Debian: -------------------------------------------------------------------------------- 1 | nix for Debian 2 | -------------- 3 | 4 | The access to the nix-daemon is restricted to members of the 5 | `nix-users` group. Therefore it is necessary to add the users that 6 | should be able to perform nix operations to the group `nix-users`. 7 | 8 | Users of other shells than bash need to make sure that the file 9 | /etc/profile.d/nix.sh is sourced by their shell. 10 | 11 | 12 | Bugs 13 | ---- 14 | 15 | This package creates a toplevel directory (/nix) that is not FHS 16 | compliant. It is necessary that the nix-store is located at 17 | /nix/store, since otherwise it would be impossible to use pre-build 18 | binaries from the standard Nixpkgs channels [1]. 19 | 20 | 21 | [1] https://nixos.org/nix/manual/#sec-building-source 22 | 23 | 24 | -- Kai Harries Sat, 15 Dec 2018 22:53:42 +0100 25 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | nix (2.2.1-1) UNRELEASED; urgency=medium 2 | 3 | * Initial release (Closes: #877019) 4 | 5 | -- Kai Harries Sat, 12 Jan 2019 08:37:12 +0100 6 | -------------------------------------------------------------------------------- /debian/clean: -------------------------------------------------------------------------------- 1 | config.h 2 | config.log 3 | config.status 4 | src/libexpr/parser-tab.output 5 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: nix 2 | Section: devel 3 | Priority: optional 4 | Maintainer: Kai Harries 5 | Build-Depends: debhelper (>= 11), 6 | bison, 7 | curl, 8 | docbook-xsl-ns, 9 | docbook5-xml, 10 | flex, 11 | libboost-dev, 12 | libboost-context-dev, 13 | libbrotli-dev, 14 | libbz2-dev, 15 | libcurl4-gnutls-dev | libcurl4-openssl-dev | libcurl-ssl-dev, 16 | libdbd-sqlite3-perl, 17 | libgc-dev, 18 | liblzma-dev, 19 | libreadline-dev, 20 | libseccomp-dev, 21 | libsodium-dev, 22 | libsqlite3-dev, 23 | libssl-dev, 24 | libwww-curl-perl, 25 | libxml2-utils, 26 | pkg-config, 27 | xsltproc, 28 | Standards-Version: 4.2.1 29 | Homepage: https://nixos.org/nix/ 30 | Vcs-Git: https://github.com/NixOS/nix.git 31 | Vcs-Browser: https://github.com/NixOS/nix 32 | 33 | Package: nix 34 | Architecture: any 35 | Depends: bzip2, 36 | curl, 37 | libdbd-sqlite3-perl, 38 | libwww-curl-perl, 39 | perl, 40 | xz-utils, 41 | ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} 42 | Description: Purely functional package manager 43 | A powerful package manager for Linux and other Unix systems that 44 | makes package management reliable and reproducible. Nix provides 45 | atomic upgrades and rollbacks, side-by-side installation of multiple 46 | versions of a package, multi-user package management and easy setup 47 | of build environments. 48 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: nix 3 | Source: https://nixos.org/releases/nix/latest/ 4 | 5 | Files: * 6 | Copyright: 2006-2018 Eelco Dostra, ... 7 | License: LGPL-2.1 8 | 9 | License: LGPL-2.1 10 | This package is free software; you can redistribute it and/or 11 | modify it under the terms of the GNU Lesser General Public 12 | License as published by the Free Software Foundation; either 13 | version 2 of the License, or (at your option) any later version. 14 | . 15 | This package is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | Lesser General Public License for more details. 19 | . 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with this program. If not, see . 22 | . 23 | On Debian systems, the complete text of the GNU Lesser General 24 | Public License can be found in "/usr/share/common-licenses/LGPL-2.1". 25 | 26 | 27 | Files: debian/* 28 | Copyright: 2017-2018 Kai Harries 29 | License: GPL-2+ 30 | This package is free software; you can redistribute it and/or modify 31 | it under the terms of the GNU General Public License as published by 32 | the Free Software Foundation; either version 2 of the License, or 33 | (at your option) any later version. 34 | . 35 | This package is distributed in the hope that it will be useful, 36 | but WITHOUT ANY WARRANTY; without even the implied warranty of 37 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38 | GNU General Public License for more details. 39 | . 40 | You should have received a copy of the GNU General Public License 41 | along with this program. If not, see 42 | . 43 | On Debian systems, the complete text of the GNU General 44 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 45 | -------------------------------------------------------------------------------- /debian/dirs: -------------------------------------------------------------------------------- 1 | nix/var/nix/daemon-socket 2 | nix/var/nix/gcroots/per-user 3 | nix/var/nix/profiles/per-user 4 | -------------------------------------------------------------------------------- /debian/gbp.conf: -------------------------------------------------------------------------------- 1 | [buildpackage] 2 | debian-branch = master 3 | force-create = True 4 | overlay = True 5 | export-dir = ../nix.deb-export 6 | -------------------------------------------------------------------------------- /debian/links: -------------------------------------------------------------------------------- 1 | etc/profile.d/nix.sh etc/X11/Xsession.d/90nix 2 | -------------------------------------------------------------------------------- /debian/nix-daemon.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: nix-daemon 4 | # Required-Start: $local_fs $syslog 5 | # Required-Stop: $local_fs $syslog 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: Starts the Nix daemon 9 | # Description: This is a daemon which enable the multi-user mode 10 | # of the Nix package manager. 11 | ### END INIT INFO 12 | 13 | # Author: Kai Harries 14 | 15 | PATH=/bin:/usr/bin:/sbin:/usr/sbin 16 | DAEMON=/usr/bin/nix-daemon 17 | RUNDIR=/var/run/nix 18 | 19 | test -x $DAEMON || exit 0 20 | 21 | 22 | . /lib/lsb/init-functions 23 | 24 | 25 | case "$1" in 26 | start) 27 | mkdir -p ${RUNDIR} 28 | log_daemon_msg "Starting Nix daemon" "nix-daemon" 29 | /sbin/start-stop-daemon --start \ 30 | --oknodo \ 31 | --background \ 32 | --exec $DAEMON \ 33 | -- --daemon 34 | log_end_msg $? 35 | ;; 36 | stop) 37 | log_daemon_msg "Stopping Nix daemon" "nix-daemon" 38 | /sbin/start-stop-daemon --stop \ 39 | --exec $DAEMON \ 40 | --retry 5 41 | log_end_msg $? 42 | ;; 43 | force-reload|restart) 44 | $0 stop 45 | $0 start 46 | ;; 47 | status) 48 | /sbin/start-stop-daemon --status \ 49 | --exec $DAEMON 50 | ;; 51 | *) 52 | echo "Usage: /etc/init.d/nix-daemon {start|stop|restart|force-reload|status}" 53 | exit 1 54 | ;; 55 | esac 56 | 57 | exit 0 58 | -------------------------------------------------------------------------------- /debian/nix.1: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. 2 | .TH NIX "1" "November 2018" "nix (Nix) 2.1.3" "User Commands" 3 | .SH NAME 4 | nix \- experimental cli for the nix package manager 5 | .SH SYNOPSIS 6 | .B nix 7 | \fI\, \/\fR... \fI\,\/\fR... 8 | .SH DESCRIPTION 9 | .SS "Common flags:" 10 | .TP 11 | \fB\-\-debug\fR 12 | enable debug output 13 | .TP 14 | \fB\-\-help\fR 15 | show usage information 16 | .TP 17 | \fB\-\-help\-config\fR 18 | show configuration options 19 | .TP 20 | \fB\-\-option\fR 21 | set a Nix configuration option (overriding nix.conf) 22 | .TP 23 | \fB\-\-quiet\fR 24 | decrease verbosity level 25 | .TP 26 | \fB\-v\fR, \fB\-\-verbose\fR 27 | increase verbosity level 28 | .TP 29 | \fB\-\-version\fR 30 | show version information 31 | .PP 32 | In addition, most configuration settings can be overriden using '\-\- '. 33 | Boolean settings can be overriden using '\-\-' or '\-\-no\-'. See 'nix 34 | \fB\-\-help\-config\fR' for a list of configuration settings. 35 | .SS "Available commands:" 36 | .TP 37 | add\-to\-store 38 | add a path to the Nix store 39 | .TP 40 | build 41 | build a derivation or fetch a store path 42 | .TP 43 | cat\-nar 44 | print the contents of a file inside a NAR file 45 | .TP 46 | cat\-store 47 | print the contents of a store file on stdout 48 | .TP 49 | copy 50 | copy paths between Nix stores 51 | .TP 52 | copy\-sigs 53 | copy path signatures from substituters (like binary caches) 54 | .TP 55 | dump\-path 56 | dump a store path to stdout (in NAR format) 57 | .TP 58 | edit 59 | open the Nix expression of a Nix package in $EDITOR 60 | .TP 61 | eval 62 | evaluate a Nix expression 63 | .TP 64 | hash\-file 65 | print cryptographic hash of a regular file 66 | .TP 67 | hash\-path 68 | print cryptographic hash of the NAR serialisation of a path 69 | .TP 70 | log 71 | show the build log of the specified packages or paths, if available 72 | .TP 73 | ls\-nar 74 | show information about the contents of a NAR file 75 | .TP 76 | ls\-store 77 | show information about a store path 78 | .TP 79 | optimise\-store 80 | replace identical files in the store by hard links 81 | .TP 82 | path\-info 83 | query information about store paths 84 | .TP 85 | ping\-store 86 | test whether a store can be opened 87 | .TP 88 | repl 89 | start an interactive environment for evaluating Nix expressions 90 | .TP 91 | run 92 | run a shell in which the specified packages are available 93 | .TP 94 | search 95 | query available packages 96 | .TP 97 | show\-config 98 | show the Nix configuration 99 | .TP 100 | show\-derivation 101 | show the contents of a store derivation 102 | .TP 103 | sign\-paths 104 | sign the specified paths 105 | .TP 106 | to\-base16 107 | convert a hash to base\-16 representation 108 | .TP 109 | to\-base32 110 | convert a hash to base\-32 representation 111 | .TP 112 | to\-base64 113 | convert a hash to base\-64 representation 114 | .TP 115 | upgrade\-nix 116 | upgrade Nix to the latest stable version 117 | .TP 118 | verify 119 | verify the integrity of store paths 120 | .TP 121 | why\-depends 122 | show why a package has another package in its closure 123 | .PP 124 | Note: this program is EXPERIMENTAL and subject to change. 125 | -------------------------------------------------------------------------------- /debian/nix.lintian-overrides: -------------------------------------------------------------------------------- 1 | nix binary: package-contains-empty-directory 2 | 3 | # The Nix package-manager keeps by default all packages in the path 4 | # `/nix/store`. In principal this path can be changed, but it would 5 | # make it impossible to use pre-build binaries from the standard 6 | # Nixpkgs channels [1]. 7 | # 8 | # The problem are retained dependencies. A package keeps references to 9 | # a package it depends on. And this references contain the absolute 10 | # path (including `/nix/store`). 11 | # 12 | # Section 5.5.3 and 6.1 of the PHD thesis "The Purely Functional 13 | # Software Deployment Model" [2] on which Nix is based gives some more 14 | # insight. 15 | # 16 | # This was discussed on the debian-devel mailing list [3] and so far 17 | # no voice was raised that a override would be the wrong thing to do. 18 | # 19 | # [1] https://nixos.org/nix/manual/#sec-building-source 20 | # [2] https://nixos.org/~eelco/pubs/phd-thesis.pdf 21 | # [3] https://lists.debian.org/debian-devel/2019/01/msg00010.html 22 | 23 | nix binary: non-standard-toplevel-dir 24 | -------------------------------------------------------------------------------- /debian/nix.manpages: -------------------------------------------------------------------------------- 1 | debian/nix.1 2 | -------------------------------------------------------------------------------- /debian/patches/fix-Makefile.config.patch: -------------------------------------------------------------------------------- 1 | commit 3b5a9bd6e1a59561789e8733c91115f1a3aee242 2 | Author: Kai Harries 3 | Date: Fri Nov 23 15:23:57 2018 +0100 4 | 5 | Append CPPFLAGS to GLOBAL_*FLAGS, copy LDFLAGS into GLOBAL_LDFLAGS 6 | 7 | diff --git a/Makefile b/Makefile 8 | index 45a3338e..6d433249 100644 9 | --- a/Makefile 10 | +++ b/Makefile 11 | @@ -26,4 +26,8 @@ ifeq ($(OPTIMIZE), 1) 12 | GLOBAL_CXXFLAGS += -O3 13 | endif 14 | 15 | +GLOBAL_CFLAGS += $(CPPFLAGS) 16 | +GLOBAL_CXXFLAGS += $(CPPFLAGS) 17 | +GLOBAL_LDFLAGS += $(LDFLAGS) 18 | + 19 | include mk/lib.mk 20 | -------------------------------------------------------------------------------- /debian/patches/fix-service-file-path.patch: -------------------------------------------------------------------------------- 1 | Install systemd units into /lib instead of /usr/lib 2 | --- a/misc/systemd/local.mk 3 | +++ b/misc/systemd/local.mk 4 | @@ -1,5 +1,5 @@ 5 | ifeq ($(OS), Linux) 6 | 7 | - $(foreach n, nix-daemon.socket nix-daemon.service, $(eval $(call install-file-in, $(d)/$(n), $(prefix)/lib/systemd/system, 0644))) 8 | + $(foreach n, nix-daemon.socket nix-daemon.service, $(eval $(call install-file-in, $(d)/$(n), /lib/systemd/system, 0644))) 9 | 10 | endif 11 | -------------------------------------------------------------------------------- /debian/patches/series: -------------------------------------------------------------------------------- 1 | fix-service-file-path.patch 2 | fix-Makefile.config.patch 3 | trim-nix-profile.patch 4 | -------------------------------------------------------------------------------- /debian/patches/trim-nix-profile.patch: -------------------------------------------------------------------------------- 1 | Author: Kai Harries 2 | Date: Sun Dec 16 22:25:20 2018 +0100 3 | 4 | Trim the nix-profile-daemon.sh 5 | 6 | Do not subscribe root by default to a nix-channel 7 | 8 | Do not set the NIX_SSL_CERT_FILE environment variables 9 | 10 | 11 | diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in 12 | --- a/scripts/nix-profile-daemon.sh.in 13 | +++ b/scripts/nix-profile-daemon.sh.in 14 | @@ -27,11 +27,6 @@ if test -w $HOME; then 15 | fi 16 | fi 17 | 18 | - # Subscribe the root user to the NixOS channel by default. 19 | - if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then 20 | - echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels 21 | - fi 22 | - 23 | # Create the per-user garbage collector roots directory. 24 | NIX_USER_GCROOTS_DIR=@localstatedir@/nix/gcroots/per-user/$USER 25 | mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR 26 | @@ -49,26 +44,5 @@ if test -w $HOME; then 27 | fi 28 | fi 29 | 30 | - 31 | -# Set $NIX_SSL_CERT_FILE so that Nixpkgs applications like curl work. 32 | -if [ ! -z "${NIX_SSL_CERT_FILE:-}" ]; then 33 | - : # Allow users to override the NIX_SSL_CERT_FILE 34 | -elif [ -e /etc/ssl/certs/ca-certificates.crt ]; then # NixOS, Ubuntu, Debian, Gentoo, Arch 35 | - export NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt 36 | -elif [ -e /etc/ssl/ca-bundle.pem ]; then # openSUSE Tumbleweed 37 | - export NIX_SSL_CERT_FILE=/etc/ssl/ca-bundle.pem 38 | -elif [ -e /etc/ssl/certs/ca-bundle.crt ]; then # Old NixOS 39 | - export NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt 40 | -elif [ -e /etc/pki/tls/certs/ca-bundle.crt ]; then # Fedora, CentOS 41 | - export NIX_SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt 42 | -else 43 | - # Fall back to what is in the nix profiles, favouring whatever is defined last. 44 | - for i in $NIX_PROFILES; do 45 | - if [ -e $i/etc/ssl/certs/ca-bundle.crt ]; then 46 | - export NIX_SSL_CERT_FILE=$i/etc/ssl/certs/ca-bundle.crt 47 | - fi 48 | - done 49 | -fi 50 | - 51 | export NIX_PATH="nixpkgs=@localstatedir@/nix/profiles/per-user/root/channels/nixpkgs:@localstatedir@/nix/profiles/per-user/root/channels" 52 | export PATH="$HOME/.nix-profile/bin:@localstatedir@/nix/profiles/default/bin:$PATH" 53 | -------------------------------------------------------------------------------- /debian/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postinst script for nix 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `configure' 10 | # * `abort-upgrade' 11 | # * `abort-remove' `in-favour' 12 | # 13 | # * `abort-remove' 14 | # * `abort-deconfigure' `in-favour' 15 | # `removing' 16 | # 17 | # for details, see https://www.debian.org/doc/debian-policy/ or 18 | # the debian-policy package 19 | 20 | 21 | case "$1" in 22 | configure) 23 | groupadd --force --system nix-users 24 | chgrp nix-users /nix/var/nix/daemon-socket 25 | chmod ug=rwx,o= /nix/var/nix/daemon-socket 26 | groupadd --force --system nixbld 27 | for n in $(seq 1 10); do 28 | if ! id nixbld$n > /dev/null 2>&1; then 29 | useradd --system \ 30 | --comment "Nix build user $n" \ 31 | --home-dir /var/empty \ 32 | --gid nixbld --groups nixbld \ 33 | --no-user-group \ 34 | --shell "$(which nologin)" \ 35 | nixbld$n 36 | fi 37 | done 38 | chmod u=rwx,g=rwx,o=rwxt /nix/var/nix/gcroots/per-user 39 | chmod u=rwx,g=rwx,o=rwxt /nix/var/nix/profiles/per-user 40 | ;; 41 | 42 | abort-upgrade|abort-remove|abort-deconfigure) 43 | ;; 44 | 45 | *) 46 | echo "postinst called with unknown argument \`$1'" >&2 47 | exit 1 48 | ;; 49 | esac 50 | 51 | # dh_installdeb will replace this with shell code automatically 52 | # generated by other debhelper scripts. 53 | 54 | #DEBHELPER# 55 | 56 | exit 0 57 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #export DH_VERBOSE = 1 5 | 6 | # see FEATURE AREAS in dpkg-buildflags(1) 7 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all 8 | DPKG_EXPORT_BUILDFLAGS = 1 9 | 10 | include /usr/share/dpkg/architecture.mk 11 | include /usr/share/dpkg/buildflags.mk 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | export EDITLINE_CFLAGS = "-DREADLINE" 20 | export EDITLINE_LIBS = "/usr/lib/$(DEB_HOST_MULTIARCH)/libhistory.so /usr/lib/$(DEB_HOST_MULTIARCH)/libreadline.so" 21 | 22 | 23 | %: 24 | dh $@ --with=autoreconf 25 | 26 | 27 | override_dh_auto_configure: 28 | dh_auto_configure -- \ 29 | --enable-gc \ 30 | --with-coreutils-bin=/usr/bin:/bin \ 31 | --localstatedir=/nix/var \ 32 | --libdir=/usr/lib/nix 33 | 34 | 35 | override_dh_auto_install: 36 | dh_auto_install 37 | # remove deprecated upstart configuration 38 | rm -r debian/nix/etc/init/ 39 | # install pkgconfig configuration 40 | mkdir -p debian/nix/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig 41 | mv debian/nix/usr/lib/pkgconfig/nix-expr.pc debian/nix/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/nix-expr.pc 42 | mv debian/nix/usr/lib/pkgconfig/nix-main.pc debian/nix/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/nix-main.pc 43 | mv debian/nix/usr/lib/pkgconfig/nix-store.pc debian/nix/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/nix-store.pc 44 | # since this is a multi-user nix installation we remove the 45 | # default nix.sh and replace it by nix-daemon.sh 46 | rm debian/nix/etc/profile.d/nix.sh 47 | mv debian/nix/etc/profile.d/nix-daemon.sh debian/nix/etc/profile.d/nix.sh 48 | 49 | 50 | override_dh_installinit: 51 | dh_installinit -pnix --name=nix-daemon 52 | # fix package-contains-ancient-file lintian warning 53 | touch --reference=debian/nix/lib/systemd/system/nix-daemon.service debian/nix/etc/init.d/nix-daemon 54 | 55 | 56 | override_dh_auto_clean: 57 | dh_auto_clean 58 | # remove output files created from ./configure templates 59 | find . -name '*.in' | while read x; do if [ -f $${x%.in} ]; then rm -f $${x%.in}; fi; done 60 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/source/options: -------------------------------------------------------------------------------- 1 | extend-diff-ignore = "(\.github/README\.md|\.travis\.yml)$" 2 | -------------------------------------------------------------------------------- /debian/tests/control: -------------------------------------------------------------------------------- 1 | Tests: nix-daemon-status 2 | Depends: @, make, systemd 3 | Restrictions: isolation-container, needs-root 4 | 5 | Tests: nix-env-and-shell 6 | Depends: @, ca-certificates, make 7 | Restrictions: allow-stderr, isolation-container, needs-root 8 | -------------------------------------------------------------------------------- /debian/tests/nix-daemon-status: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | 4 | all: 5 | service nix-daemon start 6 | service nix-daemon status 7 | -------------------------------------------------------------------------------- /debian/tests/nix-env-and-shell: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | 4 | all: 5 | mkdir -p /etc/nix/ 6 | echo "sandbox = false" >> /etc/nix/nix.conf 7 | service nix-daemon restart 8 | nix-channel --add https://nixos.org/channels/nixpkgs-unstable 9 | nix-channel --update 10 | nix-shell -p nix-du --run "nix-du --help" '' 11 | nix-env -iA nixpkgs.nix-du 12 | nix-du --help 13 | -------------------------------------------------------------------------------- /debian/upstream/signing-key.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mQENBFZu2zwBCADfatenjH3cvhlU6AeInvp4R0JmPBG942aghFj1Qh57smRcO5Bv 4 | y9mqrX3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IC KEY BLOCK----- 38 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=4 2 | 3 | opts="pgpmode=auto" https://nixos.org/releases/nix/latest/ nix-([\.\d]+).tar.xz --------------------------------------------------------------------------------