aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/cmd-profiles.hh
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-01 18:51:16 -0600
committerQyriad <qyriad@qyriad.me>2024-05-02 12:02:28 -0600
commitf88423813f042cf40d9207409cd05cf4b75d87a0 (patch)
treed02a8cdc30d1978f79b8f98ba199225551ece77e /src/libcmd/cmd-profiles.hh
parent1425aa0b7cd0d3477589f75bea4fb9c74e057fed (diff)
nix3-profile: allow using human-readable names to select packages
These names are parsed from the URL provided for that package Based off of commit 257b768436a0e8ab7887f9b790c5b92a7fe51ef5 Upstream-PR: https://github.com/NixOS/nix/pull/8678 Co-authored-by: Felix Uhl <felix.uhl@outlook.com> Change-Id: I76d5f9cfb11d3d2915b3dd1db21d7bb49e91f4fb
Diffstat (limited to 'src/libcmd/cmd-profiles.hh')
-rw-r--r--src/libcmd/cmd-profiles.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcmd/cmd-profiles.hh b/src/libcmd/cmd-profiles.hh
index d03f9b1c2..7f2c8a76f 100644
--- a/src/libcmd/cmd-profiles.hh
+++ b/src/libcmd/cmd-profiles.hh
@@ -6,6 +6,8 @@
#include "flake/flakeref.hh"
#include "get-drvs.hh"
#include "types.hh"
+#include "url.hh"
+#include "url-name.hh"
#include <string>
#include <set>
@@ -33,6 +35,7 @@ constexpr int DEFAULT_PRIORITY = 5;
struct ProfileElement
{
StorePathSet storePaths;
+ std::string name;
std::optional<ProfileElementSource> source;
bool active = true;
int priority = DEFAULT_PRIORITY;