aboutsummaryrefslogtreecommitdiff
path: root/tests/nix-channel.sh
AgeCommit message (Collapse)Author
2023-02-10A setting to follow XDG Base Directory standardAlexander Bantyev
XDG Base Directory is a standard for locations for storing various files. Nix has a few files which seem to fit in the standard, but currently use a custom location directly in the user's ~, polluting it: - ~/.nix-profile - ~/.nix-defexpr - ~/.nix-channels This commit adds a config option (use-xdg-base-directories) to follow the XDG spec and instead use the following locations: - $XDG_STATE_HOME/nix/profile - $XDG_STATE_HOME/nix/defexpr - $XDG_STATE_HOME/nix/channels If $XDG_STATE_HOME is not set, it is assumed to be ~/.local/state. Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> Co-authored-by: Tim Fenney <kodekata@gmail.com> Co-authored-by: pasqui23 <pasqui23@users.noreply.github.com> Co-authored-by: Artturin <Artturin@artturin.com> Co-authored-by: John Ericson <Ericson2314@Yahoo.com>
2021-12-17Test the update of multiple channelsregnat
Make sure that `nix-channel --update` won’t accidentaly remove one
2020-07-23Remove references to xmllintEelco Dolstra
2020-05-12tests/binary-cache.sh: Improve incomplete closure testEelco Dolstra
Issue #3373.
2019-10-09nix-env: Create ~/.nix-profile automaticallyEelco Dolstra
2017-10-02Fix testsDan Peebles
`nix copy` no longer accepts a `--recursive` argument
2016-08-10Nuke nix-push.Shea Levy
Rarely used, nix copy replaces it.
2016-05-30Test the NAR info cacheEelco Dolstra
2016-04-11Remove manifest supportEelco Dolstra
Manifests have been superseded by binary caches for years. This also gets rid of nix-pull, nix-generate-patches and bsdiff/bspatch.
2015-04-29tests: Fix wrong channel name in nix-channel.sh.aszlig
The $channelName variable passed to the channel builder is the last portion of the URL and while that works in the previous test for channels prior to #519, it doesn't work if the last portion is nixexprs.tar.bz2. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-04-20Support tarballs in nix channel URLsDan Peebles
2012-07-26nix-push: Support generating a manifest againEelco Dolstra
This makes all the tests succeed. Woohoo!
2012-04-14nix-channel improvementsEelco Dolstra
"nix-channel --add" now accepts a second argument: the channel name. This allows channels to have a nicer name than (say) nixpkgs_unstable. If no name is given, it defaults to the last component of the URL (with "-unstable" or "-stable" removed). Also, channels are now stored in a profile (/nix/var/nix/profiles/per-user/$USER/channels). One advantage of this is that it allows rollbacks (e.g. if "nix-channel --update" gives an undesirable update).
2012-01-03* FreeBSD tar defaults to the tape device instead of stdout.Eelco Dolstra
2012-01-03* Add a test for nix-channel.Eelco Dolstra
* Refactor the nix-channel unpacker a bit.